Hadithcore
Sahih Muslim, 972 b
sahih

Abu Marthad al-Ghanawi reported Allah's Messenger (ﷺ) as saying:

Do not pray facing towards the graves, and do not sit on them.

وَحَدَّثَنَا حَسَنُ بْنُ الرَّبِيعِ الْبَجَلِيُّ، حَدَّثَنَا ابْنُ الْمُبَارَكِ، عَنْ عَبْدِ الرَّحْمَنِ بْنِ يَزِيدَ، عَنْ بُسْرِ بْنِ عُبَيْدِ اللَّهِ، عَنْ أَبِي إِدْرِيسَ الْخَوْلاَنِيِّ، عَنْ وَاثِلَةَ بْنِ الأَسْقَعِ، عَنْ أَبِي مَرْثَدٍ الْغَنَوِيِّ، قَالَ سَمِعْتُ رَسُولَ اللَّهِ صلى الله عليه وسلم يَقُولُ ‏

‏ لاَ تُصَلُّوا إِلَى الْقُبُورِ وَلاَ تَجْلِسُوا عَلَيْهَا‏

‏ ‏.‏

References2 variants
In-Book Reference
Book 11, Hadith 127
USC-MSA web (English) reference
Book 4, Hadith 2122 (deprecated numbering scheme)
Related hadiths6
Compare isnād across 6 related chains →