Abu Marthad reported,

The Messenger of Allah ﷺ said, "Do not sit on graves, and do not pray facing them."

Azami 3792

Sahih

عن أبي مرثد الغنوي قال

قال رسول الله ﷺ: لا تجلسوا على القبور، ولا تصلوا إليها.

الأعظمي 3792صحيح
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 3792 (2nd edition)
Azami 3792