Amr bin Hazm reported,

The Messenger of Allah ﷺ saw me leaning on a grave and said, "Do not harm the occupant of this grave," or "Do not harm him."

Azami 3796

Sahih

عن عمرو بن حزم قال

رآني رسول الله ﷺ متكئا على قبر، فقال: لا تؤذ صاحب هذا القبر أو لا تؤذه.

الأعظمي 3796صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Funerals
Chapter
Graves
Section
Prohibition of sitting on a grave, stepping on it, and praying on it
Numbering
Jami al-Kamil 3796 (2nd edition)
Azami 3796