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.
Reference: Sahih Muslim 2875 In-book : Book 53, Hadith 93 USC-MSA web (English) : Book 40, Hadith 6870 (deprecated)
Help us gift a modern, ad-free Islamic application for the Muslim Ummah. Your donation will be recorded as Sadaqah Jariyah in your book of deeds, In Sha Allah.