Abu Marthad Kannaz bin Husain (May Allah be pleased with him) said:
I heard the Messenger of Allah (ﷺ) saying: "Do not offer Salat (prayer) facing the graves and do not sit on them."[Muslim]. (PT)
App reference (PT): Book 18, Hadith 247 (PT)
Arabic/English book reference (PT): Book 18, Hadith 1757 (PT)