Zayd bin Thabit reported,

While the Prophet ﷺ was in a garden belonging to Banu Najjar, riding on his mule with us accompanying him, the mule suddenly shied and nearly threw him off. There appeared six, or five, or four graves (this is how Jareeri used to relate it).He asked, "Who knows the people buried in these graves?"A man replied, "I do."He asked, "When did they die?"The man said, "They died in the time of polytheism."He said, "This community is tested in their graves. Were it not that you would cease burying your dead, I would have asked Allah to let you hear the punishment of the grave that I am hearing."Then he turned his face toward us and said, "Seek refuge in Allah from the punishment of the Fire."They said, "We seek refuge in Allah from the punishment of the Fire."He said, "Seek refuge in Allah from the punishment of the grave."They said, "We seek refuge in Allah from the punishment of the grave."He said, "Seek refuge in Allah from trials, both apparent and hidden."They said, "We seek refuge in Allah from trials, both apparent and hidden."He said, "Seek refuge in Allah from the trial of Dajjal."They said, "We seek refuge in Allah from the trial of Dajjal."

Azami 3841

Sahih

عن زيد بن ثابت قال

بينما النبي ﷺ في حائط لبني النجار على بغلة له، ونحن معه، إذ حادث به فكادت تلقيه، وإذا أقبر ستة أو خمسة أو أربعة، (كذا كان يقول الجريري) فقال: من يعرف أصحاب هذه الأقبر؟ فقال رجل: أنا. قال: فمتى مات هؤلاء؟ قال: ماتوا في الإشراك، فقال: إن هذه الأمة تبلى في قبورها، فلولا أن لا تدافنوا لدعوت الله أن يسمعكم من عذاب القبر الذي أسمع منه ثم أقبل علينا بوجهه فقال: تعوذوا بالله من عذاب النار قالوا: نعوذ بالله من عذاب النار، فقال: تعوذوا بالله من عذاب القبر قالوا: نعوذ بالله من عذاب القبر، قال: تعوذوا بالله من الفتن ما ظهر منها وما بطن قالوا: نعوذ بالله من الفتن ما ظهر منها وما بطن، قال: تعوذوا بالله فتنة الدجال قالوا: نعوذ بالله من فتنة الدجال.

الأعظمي 3841صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Funerals
Chapter
Conditions of the deceased in the grave
Section
People of the Jahiliyyah being punished in their graves
Numbering
Jami al-Kamil 3841 (2nd edition)
Azami 3841