Anas bin Malik reported,

The Messenger of Allah ﷺ was riding a grey mule when he passed by a walled garden belonging to Banu Najjar. There he came upon a grave whose occupant was being punished, and the mule shied. He said, "Were it not that you would cease burying your dead, I would have prayed to Allah to make you hear the punishment of the grave."

Ahmad 12553

Sahih

حدثنا حسن يعني ابن موسى حدثنا حماد بن سلمة عن ثابت وحميد

عن أنس

أن رسول الله ﷺ كان على بغلة شهباء فمر على حائط لبني النجار فإذا هو بقبر يعذب صاحبه فحامت البغلة فقال لولا أن لا تدافنوا لدعوت الله أن يسمعكم عذاب القبر

أحمد 12553صحيح
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Anas bin Malik
Numbering
Darussalam 12553
Ahmad 12553