Sahih Bukhari – Hadith No : 7200

Narrated Abu Huraira: The Prophet said, “The Hour will not be established till a man passes by a grave of somebody and says, ‘Would that I were in his place.’ ”

Hadith In Arabic Text :

حدثنا إسماعيل، حدثني مالك، عن أبي الزناد، عن الأعرج، عن أبي هريرة، عن النبي صلى الله عليه وسلم قال ‏”‏ لا تقوم الساعة حتى يمر الرجل بقبر الرجل فيقول يا ليتني مكانه ‏”‏‏.‏

Chapter : Afflictions and the End of the World – كتاب الفتن