صحيح البخاري
From Sahih Bukhari (Hadith 7115):
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
Reference: Bukhari 7115