Sahih al-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.' "
حَدَّثَنَا إِسْمَاعِيلُ، حَدَّثَنِي مَالِكٌ، عَنْ أَبِي الزِّنَادِ، عَنِ الأَعْرَجِ، عَنْ أَبِي هُرَيْرَةَ، عَنِ النَّبِيِّ صلى الله عليه وسلم قَالَ " لاَ تَقُومُ السَّاعَةُ حَتَّى يَمُرَّ الرَّجُلُ بِقَبْرِ الرَّجُلِ فَيَقُولُ يَا لَيْتَنِي مَكَانَهُ " .
also referenced under: Book 92, Hadith 62 (In-Book) & Volume 9, Book 88, Hadith 231 (USC-MSA)