Narrated Abu Marthad al-Ghanawi :
The Messenger of Allah (ﷺ) as saying: Do not sit on the graves, and do not pray facing them.