صحيح مسلم
From Sahih Muslim (Hadith 2250):
Abu Marthad al-Ghanawi reported Allah's Messenger (ﷺ) as saying:Do not sit on the graves and do not pray facing towards them
Reference: Muslim 2250