Abu Hurairah reported,

The Messenger of Allah ﷺ said, "By the One in whose hand my soul rests, this world will not pass away until a man will walk past a grave, throw himself upon it, and say, 'I wish I were in the place of the one buried in this grave,' and it will not be religion that drives him to this, but only the severity of his trials."

Azami 16007

Sahih

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

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

الأعظمي 16007صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Tribulations and signs of the Hour
Chapter
Minor signs of the Hour
Section
What a person will wish for due to the severity of affliction at the end of time
Numbering
Jami al-Kamil 16007 (2nd edition)
Azami 16007