DARIMI 2803:
from Abū Hurayrah —
[Machine] The Prophet (pbuh) said, "Where is so-and-so?" A man among them winked at him, so he said, "Indeed, he is here." Then the Prophet (pbuh) said, "Didn't he participate in the Battle of Badr?" They replied, "Yes." He then said, "Perhaps Allah looked favorably upon the people of Badr and said, 'Do as you please, for I have forgiven you.'"
الدارمي ٢٨٠٣:
عن ابو هريره —
أَنَّ النَّبِيَّ ﷺ قَالَ «أَيْنَ فُلَانٌ؟» فَغَمَزَهُ رَجُلٌ مِنْهُمْ فَقَالَ إِنَّهُ وَإِنَّهُ فَقَالَ النَّبِيُّ ﷺ «أَلَيْسَ قَدْ شَهِدَ بَدْرًا؟» قَالُوا بَلَى قَالَ فَلَعَلَّ اللَّهَ اطَّلَعَ عَلَى أَهْلِ بَدْرٍ فَقَالَ اعْمَلُوا مَا شِئْتُمْ فَقَدْ غَفَرْتُ لَكُمْ
hadithunlocked.com