Hazrat Abu Talha (may Allah be pleased with him) narrated that in the Battle of Badr, by the order of the Messenger of Allah (peace and blessings be upon him), twenty-four slain chiefs of the Quraysh were thrown into a very dark and filthy well of Badr. It was the blessed habit of the Prophet (peace and blessings be upon him) that when he prevailed over the enemy, he would stay in the battlefield for three days. On the third day after the conclusion of the Battle of Badr, by his order, his mount was saddled and he set out, and his companions were with him. The companions said, "Perhaps you are going for some need." Eventually, he stood at the edge of that well and began to call out to the slain chiefs of the Quraysh, mentioning them by their names and their fathers' names, saying, "O so-and-so son of so-and-so! O so-and-so son of so-and-so! Would it not have been better for you today if you had obeyed Allah and His Messenger in the world? Surely, what our Lord promised us has been fulfilled for us in full. So has the promise (of punishment) that your Lord made to you also been fulfilled for you in full?" Hazrat Abu Talha (may Allah be pleased with him) narrated that upon this, Hazrat Umar (may Allah be pleased with him) spoke up, "O Messenger of Allah! Why are you addressing these bodies in which there is no soul?" The Prophet (peace and blessings be upon him) said, "By Him in Whose hand is my soul, you do not hear what I am saying any better than they do."
Hadith Takhrij«صحیح، أخرجه البخاري في: 64 كتاب المغازي: 8 باب قتل أبي جهل»
Brief Explanation
Those who try to establish the doctrine of the dead hearing (sama‘ al-mawta) from this incident are entirely mistaken. This was, in fact, a miracle of the Messenger of Allah sallallahu alayhi wa sallam. It is explicitly stated in the Noble Qur’an: “And you cannot make those in the graves hear.” That is, you are incapable of making the inhabitants of the graves hear. After death, along with the severance of all worldly connections, the requisites of worldly life also come to an end. Hearing is included among these. If the dead were able to hear, then declaring them as dead would itself be incorrect. (Raaz)