Bashir bin Khassasiya reported,

I was walking with the Messenger of Allah ﷺ when he passed by the graves of the Muslims. He said, "These have been spared much evil."Then he passed by the graves of the polytheists and said, "These have missed out on much good."Then he happened to glance aside and saw a man walking among the graves wearing his sandals. He called out, "You there, wearing the leather sandals, take them off!"

Nasai 2050

Sahih

أخبرنا محمد بن عبد الله بن المبارك قال حدثنا وكيع عن الأسود بن شيبان وكان ثقة عن خالد بن سمير عن بشير بن نهيك أن

بشير ابن الخصاصية قال

كنت أمشي مع رسول الله ﷺ فمر على قبور المسلمين فقال لقد سبق هؤلاء شرا كثيرا ثم مر على قبور المشركين فقال لقد سبق هؤلاء خيرا كثيرا فحانت منه التفاتة فرأى رجلا يمشي بين القبور في نعليه فقال يا صاحب السبتيتين ألقهما

النسائي 2050صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Nasai Sughra
Book
Funerals
Chapter
Disliking walking between graves in leather sandals
Numbering
Darussalam 2050
Nasai 2050