Abu Marthan Al-Ghanawi narrated that:
The Prophet said: "Do not sit on the graves nor perform Salat towards them."