Abu Hurairah reported,

The Messenger of Allah ﷺ said, "By the One in whose hand my soul rests, the world will not come to an end until a man will pass by a grave, roll himself upon it, and say, 'How I wish I were in the place of the one buried here.' It will not be religion that drives him to this, but only the severity of affliction."

Muslim 7302

Sahih

حدثنا عبد الله بن عمر بن محمد بن أبان بن صالح ومحمد بن يزيد الرفاعي واللفظ لابن أبان قالا حدثنا ابن فضيل عن أبي إسمعيل عن أبي حازم

عن أبي هريرة قال

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

مسلم 7302صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Tribulations and signs of the Hour
Chapter
Hour will not come until a man passes by a man's grave and wishes he were in the place of the dead due to affliction
Numbering
Darussalam 7302
Muslim 7302