Hadithcore
Sunan an-Nasa'i, 2058
sahih· Darussalam

It was narrated from Anas that the Prophet (ﷺ) heard a sound from a grave and said:

"When died this man die?" They said: "he died during the Jahiliyyah." So he was delighted and said: "Were it not that you would not bury one another, I would have prayed to Allah to make you hear the torment of the grave."

أَخْبَرَنَا سُوَيْدُ بْنُ نَصْرٍ، قَالَ حَدَّثَنَا عَبْدُ اللَّهِ، عَنْ حُمَيْدٍ، عَنْ أَنَسٍ، أَنَّ النَّبِيَّ صلى الله عليه وسلم سَمِعَ صَوْتًا مِنْ قَبْرٍ فَقَالَ ‏"‏ مَتَى مَاتَ هَذَا ‏"‏ ‏.‏ قَالُوا مَاتَ فِي الْجَاهِلِيَّةِ ‏.‏ فَسُرَّ بِذَلِكَ وَقَالَ ‏"‏ لَوْلاَ أَنْ لاَ تَدَافَنُوا لَدَعَوْتُ اللَّهَ أَنْ يُسْمِعَكُمْ عَذَابَ الْقَبْرِ ‏"‏ ‏.‏

References2 variants
In-Book Reference
Book 21, Hadith 241
English Reference
Vol. 3, Book 21, Hadith 2060