It is narrated from Sayyiduna Abu Marthad (may Allah be pleased with him) that I heard the Prophet (peace and blessings of Allah be upon him) say: "Do not pray facing towards graves, nor sit upon them."
Hadith Referenceمسند احمد / مسند الشاميين / 17216
Hadith Gradingحکم دارالسلام:حديث صحيح، م: 972، وهذا إسناد وهم فيه أبن المبارك، فزاد أبا إدريس الخولاني بين بسر بن عبيدالله وواثلة بن الأسقع