Hadithcore
Sahih al-Bukhari, 4026
sahih

Narrated Ibn Shihab:

These were the battles of Allah's Messenger (which he fought), and while mentioning (the Badr battle) he said, "While the corpses of the pagans were being thrown into the well, Allah's Messenger (ﷺ) said (to them), 'Have you found what your Lord promised true?" `Abdullah said, "Some of the Prophet's companions said, "O Allah's Messenger (ﷺ) ! You are addressing dead people.' Allah's Messenger (ﷺ) replied, 'You do not hear what I am saying, better than they.' The total number of Muslim fighters from Quraish who fought in the battle of Badr and were given their share of the booty, were 81 men." Az-Zubair said, "When their shares were distributed, their number was 101 men. But Allah knows it better."

حَدَّثَنَا إِبْرَاهِيمُ بْنُ الْمُنْذِرِ، حَدَّثَنَا مُحَمَّدُ بْنُ فُلَيْحِ بْنِ سُلَيْمَانَ، عَنْ مُوسَى بْنِ عُقْبَةَ، عَنِ ابْنِ شِهَابٍ، قَالَ هَذِهِ مَغَازِي رَسُولِ اللَّهِ صلى الله عليه وسلم‏.‏ فَذَكَرَ الْحَدِيثَ، فَقَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم وَهْوَ يُلْقِيهِمْ ‏"‏ هَلْ وَجَدْتُمْ مَا وَعَدَكُمْ رَبُّكُمْ حَقًّا ‏"‏‏.‏ قَالَ مُوسَى قَالَ نَافِعٌ قَالَ عَبْدُ اللَّهِ قَالَ نَاسٌ مِنْ أَصْحَابِهِ يَا رَسُولَ اللَّهِ تُنَادِي نَاسًا أَمْوَاتًا قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏"‏ مَا أَنْتُمْ بِأَسْمَعَ لِمَا قُلْتُ مِنْهُمْ ‏"‏‏.‏ قَالَ أَبُو عَبْدِ اللَّهِ فَجَمِيعُ مَنْ شَهِدَ بَدْرًا مِنْ قُرَيْشٍ مِمَّنْ ضُرِبَ لَهُ بِسَهْمِهِ أَحَدٌ وَثَمَانُونَ رَجُلاً، وَكَانَ عُرْوَةُ بْنُ الزُّبَيْرِ يَقُولُ قَالَ الزُّبَيْرُ قُسِمَتْ سُهْمَانُهُمْ فَكَانُوا مِائَةً، وَاللَّهُ أَعْلَمُ‏.‏

References2 variants
In-Book Reference
Book 64, Hadith 75
USC-MSA web (English) reference
Vol. 5, Book 59, Hadith 360 (deprecated numbering scheme)