Riyad as-SalihinChapter 18Hadith 1142
Full Sharh — Riyad as-Salihin 1142
وعنه رضي الله عنه قال: قال رسول الله صلى الله عليه وسلم : " والذي نفسي بيده لا تذهب الدنيا حتى يمر الرجل بالقبر، فيتمرغ عليه، ويقول: ياليتني مكان صاحب هذا القبر، وليس به الدين، ما به إلا البلاء" ((متفق عليه)).
English Translation
Abu Hurairah (May Allah be pleased with him) reported:: The Messenger of Allah (ﷺ) said, "By Him in Whose Hand my soul is, the world will not come to an end until a man passes by a grave and will lie over it saying, 'Would that I were in this grave (i.e., dead)!' Not he will say so because of religious reasons but because of widespread mischief and severe trials of this world.".
Source
Riyad as-Salihin(رياض الصالحين)
The Book of Miscellaneous ahadith of Significant Values
Hadith Number
1142