Hadithcore
Sahih Muslim, 2870 b
sahih

Anas b. Malik reported that Allah's Messenger (ﷺ) said:

When the dead body. is placed in the grave, he listens to the sound of the shoes (as his friends and relatives return after burying him).

وَحَدَّثَنَا مُحَمَّدُ بْنُ مِنْهَالٍ الضَّرِيرُ، حَدَّثَنَا يَزِيدُ بْنُ زُرَيْعٍ، حَدَّثَنَا سَعِيدُ بْنُ أَبِي عَرُوبَةَ، عَنْ قَتَادَةَ، عَنْ أَنَسِ بْنِ مَالِكٍ، قَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏

‏ إِنَّ الْمَيِّتَ إِذَا وُضِعَ فِي قَبْرِهِ إِنَّهُ لَيَسْمَعُ خَفْقَ نِعَالِهِمْ إِذَا انْصَرَفُوا ‏

‏ ‏.‏

References2 variants
In-Book Reference
Book 53, Hadith 86
USC-MSA web (English) reference
Book 40, Hadith 6863 (deprecated numbering scheme)