Sunan an-Nasa'i, Book 21, Hadith 242 (In-Book) ⓘ
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."
أَخْبَرَنَا سُوَيْدُ بْنُ نَصْرٍ، قَالَ حَدَّثَنَا عَبْدُ اللَّهِ، عَنْ حُمَيْدٍ، عَنْ أَنَسٍ، أَنَّ النَّبِيَّ صلى الله عليه وسلم سَمِعَ صَوْتًا مِنْ قَبْرٍ فَقَالَ " مَتَى مَاتَ هَذَا " . قَالُوا مَاتَ فِي الْجَاهِلِيَّةِ . فَسُرَّ بِذَلِكَ وَقَالَ " لَوْلاَ أَنْ لاَ تَدَافَنُوا لَدَعَوْتُ اللَّهَ أَنْ يُسْمِعَكُمْ عَذَابَ الْقَبْرِ " .
also referenced under: Hadith 2058 (Reference) & Volume 3, Book 21, Hadith 2060 (DarusSalam)