Mishkat al-Masabih 126
عَنْ أَنَسِ بْنِ مَالِكٍ رَضِيَ اللَّهُ عَنْهُ أَنه حَدثهمْ أَنَّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ قَالَ: «إِنَّ الْعَبْدَ إِذَا وُضِعَ فِي قَبْرِهِ وَتَوَلَّى عَنْهُ أَصْحَابُهُ وَإِنَّهُ لَيَسْمَعُ قَرْعَ نِعَالِهِمْ أَتَاهُ مَلَكَانِ فَيُقْعِدَانِهِ فَيَقُولَانِ مَا كُنْتَ تَقُولُ فِي هَذَا الرَّجُلِ لِمُحَمَّدٍ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ فَأَمَّا الْمُؤْمِنُ فَيَقُولُ أَشْهَدُ أَنَّهُ عَبْدُ اللَّهِ وَرَسُولُهُ فَيُقَالُ لَهُ انْظُرْ إِلَى مَقْعَدِكَ مِنَ النَّارِ قَدْ أَبْدَلَكَ اللَّهُ بِهِ مَقْعَدًا مِنَ الْجنَّة فَيَرَاهُمَا جَمِيعًا قَالَ قَتَادَة وَذكر لنا أَنه يفسح لَهُ فِي قَبره ثمَّ رَجَعَ إِلَى حَدِيث أنس قَالَ وَأَمَّا الْمُنَافِقُ وَالْكَافِرُ فَيُقَالُ لَهُ مَا كُنْتَ تَقُولُ فِي هَذَا الرَّجُلِ فَيَقُولُ لَا أَدْرِي كُنْتُ أَقُولُ مَا يَقُولُ النَّاسُ فَيُقَالُ لَا دَرَيْتَ وَلَا تَلَيْتَ وَيُضْرَبُ بِمَطَارِقَ مِنْ حَدِيدٍ ضَرْبَةً فَيَصِيحُ صَيْحَةً يَسْمَعُهَا مَنْ يَلِيهِ غَيْرَ الثقلَيْن» وَلَفظه للْبُخَارِيّ
From Anas ibn Malik, may Allah be pleased with him, that he narrated to them that the Messenger of Allah ﷺ said: "When the slave is placed in his grave and his companions turn away from him, and he hears the tapping of their sandals, two angels come to him and sit him up, and they say: 'What did you say about this man?', meaning Muhammad ﷺ. As for the believer, he says: 'I testify that he is the slave of Allah and His Messenger.' It is said to him: 'Look at your seat in the Fire; Allah has exchanged it for you with a seat in Paradise.' And he sees them both." Qatadah said: And it was mentioned to us that his grave is widened for him. Then he returned to the hadith of Anas. He said: "As for the hypocrite and the disbeliever, it is said to him: 'What did you say about this man?' He says: 'I do not know; I used to say what the people said.' It is said: 'You neither knew nor followed.' And he is struck a blow with iron hammers, and he lets out a scream that is heard by everything near him except the two weighty ones [men and jinn]." Its wording is al-Bukhari's.