Sahih Muslim Book 40, Hadith Number 6870.
Chapter : The dead would be shown his seat in Paradise and hell, and the affirmation of the torment of the grave and seeking refuge from it.
Aba Talha reported: When it was the Day of Badr and Allah’s Apostle (may peace be upon him) 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.