The Prophet said: "Do not sit on the graves nor perform Salat towards them."
Jami` at-Tirmidhi Book 10, Hadith 86