Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
muslim:2875[Chain 1] Yūsuf b. Ḥammād al-Maʿnī > ʿAbd al-Aʿlá > Saʿīd > Qatādah > Anas b. Mālik > Abū Ṭalḥah [Chain 2] Rawḥ b. ʿUbādah > Saʿīd b. Abū ʿArūbah > Qatādah > Dhakar Lanā Anas b. Mālik > Abū Ṭalḥah

When it was the Day of Badr and Allah's Apostle ﷺ had gained victory over them (the Meccans), he commanded more than twenty persons, and in another hadith these are counted as twenty-four persons, from the non-believers of the Quraish to be thrown into the well of Badr. The rest of the hadith is the same.  

مسلم:٢٨٧٥حَدَّثَنِي يُوسُفُ بْنُ حَمَّادٍ الْمَعْنِيُّ حَدَّثَنَا عَبْدُ الأَعْلَى عَنْ سَعِيدٍ عَنْ قَتَادَةَ عَنْ أَنَسِ بْنِ مَالِكٍ عَنْ أَبِي طَلْحَةَ ح وَحَدَّثَنِيهِ مُحَمَّدُ بْنُ حَاتِمٍ حَدَّثَنَا رَوْحُ بْنُ عُبَادَةَ حَدَّثَنَا سَعِيدُ بْنُ أَبِي عَرُوبَةَ عَنْ قَتَادَةَ قَالَ ذَكَرَ لَنَا أَنَسُ بْنُ مَالِكٍ عَنْ أَبِي طَلْحَةَ قَالَ

لَمَّا كَانَ يَوْمُ بَدْرٍ وَظَهَرَ عَلَيْهِمْ نَبِيُّ اللَّهِ ﷺ أَمَرَ بِبِضْعَةٍ وَعِشْرِينَ رَجُلاً وَفِي حَدِيثِ رَوْحٍ بِأَرْبَعَةٍ وَعِشْرِينَ رَجُلاً مِنْ صَنَادِيدِ قُرَيْشٍ فَأُلْقُوا فِي طَوِيٍّ مِنْ أَطْوَاءِ بَدْرٍ وَسَاقَ الْحَدِيثَ بِمَعْنَى حَدِيثِ ثَابِتٍ عَنْ أَنَسٍ