Sahih al-Bukhari 7115
Book 92: Afflictions and the End of the World · Narrated by Abu Huraira
Arabic
حَدَّثَنَا إِسْمَاعِيلُ، حَدَّثَنِي مَالِكٌ، عَنْ أَبِي الزِّنَادِ، عَنِ الأَعْرَجِ، عَنْ أَبِي هُرَيْرَةَ، عَنِ النَّبِيِّ صلى الله عليه وسلم قَالَ " لاَ تَقُومُ السَّاعَةُ حَتَّى يَمُرَّ الرَّجُلُ بِقَبْرِ الرَّجُلِ فَيَقُولُ يَا لَيْتَنِي مَكَانَهُ ".
English translation
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: Sahih al-Bukhari 7115, Book of Afflictions and the End of the World. English translation by Dr. Muhammad Muhsin Khan.