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.
ibnmajah:1567Muḥammad b. Ismāʿīl b. Samurah > al-Muḥāribī > al-Layth b. Saʿd > Yazīd b. Abū Ḥabīb > Abū al-Khayr Marthad b. ʿAbdullāh al-Yazanī > ʿUqbah b. ʿĀmir

‘If I were to walk on a live coal or a sword, or if I were to sew shows to my feet, that would be better for me than walking on the grave of a Muslim. And I see no difference between relieving myself in the midst of graves or in the middle of the marketplace.”  

ابن ماجة:١٥٦٧حَدَّثَنَا مُحَمَّدُ بْنُ إِسْمَاعِيلَ بْنِ سَمُرَةَ حَدَّثَنَا الْمُحَارِبِيُّ عَنِ اللَّيْثِ بْنِ سَعْدٍ عَنْ يَزِيدَ بْنِ أَبِي حَبِيبٍ عَنْ أَبِي الْخَيْرِ مَرْثَدِ بْنِ عَبْدِ اللَّهِ الْيَزَنِيِّ عَنْ عُقْبَةَ بْنِ عَامِرٍ قَالَ

قَالَ رَسُولُ اللَّهِ ﷺ لأَنْ أَمْشِيَ عَلَى جَمْرَةٍ أَوْ سَيْفٍ أَوْ أَخْصِفَ نَعْلِي بِرِجْلِي أَحَبُّ إِلَىَّ مِنْ أَنْ أَمْشِيَ عَلَى قَبْرِ مُسْلِمٍ وَمَا أُبَالِي أَوَسَطَ الْقُبُورِ قَضَيْتُ حَاجَتِي أَوْ وَسَطَ السُّوقِ  


See similar narrations below:

Collected by Suyūṭī
suyuti:17088a
Request/Fix translation

  

السيوطي:١٧٠٨٨a

"لأَنْ أمْشِى عَلَى جَمْرَةٍ أوْ سَيفٍ أو أخْصِفَ نعْلى بِرِجْلِى أحَبُّ إِلَيَّ مِنْ أَنْ أمْشِى عَلَى قَبْرِ مُسْلِم، وَمَا أُبَالِى أوَسَطَ الْقبْرِ قَضَيتُ حَاجَتِى أَوْ وَسَطَ السُّوقِ".  

[هـ] ابن ماجة عن عقبة بن عامر