Hadith on Graves: Angels come to ask about Muhammad

Anas ibn Malik reported: The Prophet, peace and blessings be upon him, said, “When the servant is placed in his grave, his companions turn and leave until he hears the scuffing of their sandals. Two angels come to him and sit by his head, saying to him: What do you say about this man, Muhammad? He says: I testify that he is the servant of Allah and His Messenger. It will be said: Look at your seat in Hellfire, for Allah has replaced it with a seat in Paradise. He will see them both together. As for the unbeliever or hypocrite, he says: I do not know, as I only said what people said! It will be said: You did not know, nor did you recite! Then he will be struck between his two ears with an iron hammer and he will cry out such that whoever is near him will hear it except humans and jinn.

Source: Ṣaḥīḥ al-Bukhārī 1338, Ṣaḥīḥ Muslim 2870

Grade: Muttafaqun Alayhi (authenticity agreed upon) according to Al-Bukhari and Muslim

عَنْ ‌أَنَسٍ عَنِ النَّبِيِّ صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ قَالَ الْعَبْدُ إِذَا وُضِعَ فِي قَبْرِهِ وَتُوُلِّيَ وَذَهَبَ أَصْحَابُهُ حَتَّى إِنَّهُ لَيَسْمَعُ قَرْعَ نِعَالِهِمْ أَتَاهُ مَلَكَانِ فَأَقْعَدَاهُ فَيَقُولَانِ لَهُ مَا كُنْتَ تَقُولُ فِي هَذَا الرَّجُلِ مُحَمَّدٍ صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ فَيَقُولُ أَشْهَدُ أَنَّهُ عَبْدُ اللهِ وَرَسُولُهُ فَيُقَالُ انْظُرْ إِلَى مَقْعَدِكَ مِنَ النَّارِ أَبْدَلَكَ اللهُ بِهِ مَقْعَدًا مِنَ الْجَنَّةِ فَيَرَاهُمَا جَمِيعًا وَأَمَّا الْكَافِرُ أَوِ الْمُنَافِقُ فَيَقُولُ لَا أَدْرِي كُنْتُ أَقُولُ مَا يَقُولُ النَّاسُ فَيُقَالُ لَا دَرَيْتَ وَلَا تَلَيْتَ ثُمَّ يُضْرَبُ بِمِطْرَقَةٍ مِنْ حَدِيدٍ ضَرْبَةً بَيْنَ أُذُنَيْهِ فَيَصِيحُ صَيْحَةً يَسْمَعُهَا مَنْ يَلِيهِ إِلَّا الثَّقَلَيْنِ

1338 صحيح البخاري كتاب الجنائز باب الميت يسمع خفق النعال

2870 صحيح مسلم كتاب الجنة وصفة نعيمها وأهلها باب عرض مقعد الميت من الجنة أو النار عليه وإثبات عذاب القبر والتعوذ منه