Qatada reported,

Anas bin Malik reported to us from Abu Talha, who said, "On the day of Badr, when the Prophet of Allah ﷺ had gained victory over them, he ordered that twenty-odd men, and in another narration, twenty-four men, from the chiefs of Quraysh, be cast into one of the wells of Badr."

Azami 3780

Sahih

عن قتادة قال

ذكر لنا أنس بن مالك، عن أبي طلحة قال: لما كان يوم بدر، وظهر عليهم نبي الله ﷺ أمر ببضعة وعشرين رجلا- وفي رواية: بأربعة وعشرين رجلا- من صناديد قريش، فألقوا طوي من أطواء بدر.

الأعظمي 3780صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Funerals
Chapter
Burial and its related matters
Section
Burying the disbeliever and the polytheist in their own graveyards, and that they are not buried in Muslim graveyards
Numbering
Jami al-Kamil 3780 (2nd edition)
Azami 3780