(18) بَاب لَا تَقُومُ السَّاعَةُ حَتَّى يَمُرَّ الرَّجُلُ بِقَبْرِ الرَّجُلِ فَيَتَمَنَّى أَنْ يَكُونَ مَكَانَ الْمَيِّتِ مِنْ الْبَلَاءِ
This hadith has been narrated on the authority of Shu'ba with the same chain of transmitters.
Reference: Sahih Muslim 2917
In-book reference: Book 54, Hadith 92
USC-MSA web (English) reference(deprecated numbering scheme): Book 41, Hadith 6972