(18) بَاب لَا تَقُومُ السَّاعَةُ حَتَّى يَمُرَّ الرَّجُلُ بِقَبْرِ الرَّجُلِ فَيَتَمَنَّى أَنْ يَكُونَ مَكَانَ الْمَيِّتِ مِنْ الْبَلَاءِ
This hadith has been narrated on the authority of Abu Sa'id through another chain of transmitters.
Reference: Sahih Muslim 2913/2914 b
In-book reference: Book 54, Hadith 85
USC-MSA web (English) reference(deprecated numbering scheme): Book 41, Hadith 6965