(18) بَاب لَا تَقُومُ السَّاعَةُ حَتَّى يَمُرَّ الرَّجُلُ بِقَبْرِ الرَّجُلِ فَيَتَمَنَّى أَنْ يَكُونَ مَكَانَ الْمَيِّتِ مِنْ الْبَلَاءِ
(The above mentioned) hadith has been narrated on the authority of Abu Huraira through another chain of transmitters.
Reference: Sahih Muslim 2909 b
In-book reference: Book 54, Hadith 72
USC-MSA web (English) reference(deprecated numbering scheme): Book 41, Hadith 6952