Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
suyuti:24115a
Request/Fix translation

  

السيوطي:٢٤١١٥a

"وَالَّذِي نَفْسِي بِيَدِهِ لا تَذْهَبُ الدُّنْيَا حَتَّى يَمُرَّ الرَّجُلُ عَلَى القَبْرِ فَيَتَمَرَّغَ عَلَيهِ وَيَقُولُ: يَا لَيتَنِي كُنْتُ مَكَانَ صَاحِبِ هَذَا القَبْرِ، وَلَيسَ بِهِ الدِّينُ إلا البلاءُ".  

[م] مسلم [هـ] ابن ماجة عن أبي هريرة

See similar narrations below:

Collected by Muslim, Ibn Mājah
muslim:157LʿAbdullāh b. ʿUmar b. Muḥammad b. Abān b. Ṣāliḥ And Muḥammad b. Yazīd al-Rifāʿī Wa-al-Lafẓ Ibn Abān > Ibn Fuḍayl > Abū Ismāʿīl > Abū Ḥāzim > Abū Hurayrah

By Him, in Whose hand is my life, the world would not come to an end until a person would pass by a grave, would roll over it and express the desire that he should be in the place of the occupant of that grave not because of religious reasons but because of this calamity.  

مسلم:١٥٧Lحَدَّثَنَا عَبْدُ اللَّهِ بْنُ عُمَرَ بْنِ مُحَمَّدِ بْنِ أَبَانَ بْنِ صَالِحٍ وَمُحَمَّدُ بْنُ يَزِيدَ الرِّفَاعِيُّ وَاللَّفْظُ لاِبْنِ أَبَانَ قَالاَ حَدَّثَنَا ابْنُ فُضَيْلٍ عَنْ أَبِي إِسْمَاعِيلَ عَنْ أَبِي حَازِمٍ عَنْ أَبِي هُرَيْرَةَ قَالَ

قَالَ رَسُولُ اللَّهِ ﷺ وَالَّذِي نَفْسِي بِيَدِهِ لاَ تَذْهَبُ الدُّنْيَا حَتَّى يَمُرَّ الرَّجُلُ عَلَى الْقَبْرِ فَيَتَمَرَّغُ عَلَيْهِ وَيَقُولُ يَا لَيْتَنِي كُنْتُ مَكَانَ صَاحِبِ هَذَا الْقَبْرِ وَلَيْسَ بِهِ الدِّينُ إِلاَّ الْبَلاَءُ  

ibnmajah:4037Wāṣil b. ʿAbd al-Aʿlá > Muḥammad b. Fuḍayl > Abū Ismāʿīl al-Aslamī > Abū Ḥāzim > Abū Hurayrah

“By the One in Whose Hand is my soul, this world will not pass away until a man will pass by a grave, and will roll on it and say: ‘Would that I were in the place of the occupant of this grave!’ And the reason for that will not be any religious motive, rather it will be because of calamity.”  

ابن ماجة:٤٠٣٧حَدَّثَنَا وَاصِلُ بْنُ عَبْدِ الأَعْلَى حَدَّثَنَا مُحَمَّدُ بْنُ فُضَيْلٍ عَنْ أَبِي إِسْمَاعِيلَ الأَسْلَمِيِّ عَنْ أَبِي حَازِمٍ عَنْ أَبِي هُرَيْرَةَ قَالَ

قَالَ رَسُولُ اللَّهِ ﷺ وَالَّذِي نَفْسِي بِيَدِهِ لاَ تَذْهَبُ الدُّنْيَا حَتَّى يَمُرَّ الرَّجُلُ عَلَى الْقَبْرِ فَيَتَمَرَّغَ عَلَيْهِ وَيَقُولُ يَا لَيْتَنِي كُنْتُ مَكَانَ صَاحِبِ هَذَا الْقَبْرِ وَلَيْسَ بِهِ الدِّينُ إِلاَّ الْبَلاَءُ