Sunan al-Darimi 692
أَخْبَرَنَا أَبُو نُعَيْمٍ، حَدَّثَنَا ابْنُ عُيَيْنَةَ، عَنِ الزُّهْرِيِّ، عَنْ عَطَاءِ بْنِ يَزِيدَ، عَنْ أَبِي أَيُّوبَ ﵁، عَنِ النَّبِيِّ ﷺ قَالَ: «إِذَا أَتَيْتُمُ الْغَائِطَ، فَلَا تَسْتَقْبِلُوا الْقِبْلَةَ بِغَائِطٍ، وَلَا بَوْلٍ، وَلَا تَسْتَدْبِرُوهَا» قَالَ: ثُمَّ قَالَ أَبُو أَيُّوبَ: فَقَدِمْنَا الشَّامَ، فَوَجَدْنَا مَرَاحِيضَ قَدْ بُنِيَتْ عِنْدَ الْقِبْلَةِ فَنَنْحَرِفُ وَنَسْتَغْفِرُ اللَّهَ قَالَ أَبُو مُحَمَّدٍ: «وَهَذَا أَصَحُّ مِنْ حَدِيثِ عَبْدِ الْكَرِيمِ وَعَبْدُ الْكَرِيمِ شِبْهُ الْمَتْرُوكِ»
Abu Nuʿaym informed us; Ibn ʿUyaynah narrated to us, from az-Zuhri, from ʿAtaʾ ibn Yazid, from Abu Ayyub, may Allah be pleased with him, from the Prophet ﷺ, who said: "When you go to relieve yourselves, do not face the qiblah when defecating or urinating, nor turn your backs to it." He said: Then Abu Ayyub said: "We came to Syria and found toilets that had been built facing the qiblah, so we would turn aside and ask Allah for forgiveness." Abu Muhammad said: "This is more authentic than the hadith of ʿAbd al-Karim, and ʿAbd al-Karim is almost abandoned."