Do not pray facing towards the graves, and do not sit on them.

Sahih Muslim Book 11, Hadith 127