Sahih Bukhari · Hadith 7200
Afflictions and the End of the World - كتاب الفتن
حدثنا إسماعيل، حدثني مالك، عن أبي الزناد، عن الأعرج، عن أبي هريرة، عن النبي صلى الله عليه وسلم قال " لا تقوم الساعة حتى يمر الرجل بقبر الرجل فيقول يا ليتني مكانه ".
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.' "
Gradings are classical jarḥ-wa-taʿdīl, name-matched to a rijāl index (not individually re-verified).