Sahih al-Bukhari 7115
Sahih al-Bukhari · Book 92: Afflictions and the End of the World · The Hour will not be established until…
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.' "