Sahih Muslim
972.01

Abu Marthad al-Ghanawi reported Allah's Messenger (ﷺ) as saying:Do not sit on the graves and do not pray facing towards them

972.02

Abu Marthad al-Ghanawi reported Allah's Messenger (ﷺ) as saying:Do not pray facing towards the graves, and do not sit on them