Sahih Bukhari Volume 005, Book 059, Hadith Number 314.
Hadith Section/Book: Sahih Bukhari Sahih Bukhari Book 59. Military Expeditions Led by the Prophet (PBUH) (Al-Maghaazi)
Narrated By Abu Talha: On the day of Badr, the Prophet ordered that the corpses of twenty four leaders of Quraish should be thrown into one of the dirty dry wells of Badr. (It was a habit of the Prophet that whenever he conquered some people, he used to stay at the battle-field for three nights. So, on the third day of the battle of Badr, he ordered that his she-camel be saddled, then he set out, and his companions followed him saying among themselves." "Definitely he (i.e. the Prophet) is proceeding for some great purpose." When he halted at the edge of the well, he addressed the corpses of the Quraish infidels by their names and their fathers' names, "O so-and-so, son of so-and-so and O so-and-so, son of so-and-so! Would it have pleased you if you had obeyed Allah and His Apostle? We have found true what our Lord promised us. Have you too found true what your Lord promised you? "'Umar said, "O Allah's Apostle! You are speaking to bodies that have no souls!" Allah's Apostle said, "By Him in Whose Hand Muhammad's soul is, you do not hear, what I say better than they do." (Qatada said, "Allah brought them to life (again) to let them hear him, to reprimand them and slight them and take revenge over them and caused them to feel remorseful and regretful.")