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]. (ID)
App reference (ID): Book 18, Hadith 247 (ID)
Arabic/English book reference (ID): Book 18, Hadith 1757 (ID)