Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
suyuti:950a

Messenger of Allah ﷺ said, "If anyone of you goes to an open space for answering the call of nature he should neither face nor turn his back towards the Qibla; he should either face the east or the west." (Using translation from Bukhārī 144)   

السيوطي:٩٥٠a

"إذا أتى أحدُكم الغائطَ فلا يستقبلْ القبلة، ولا يُوَلَّها ظهَرهُ، شرِّقُوا أو غَرِّبُوا" .  

[ش] ابن أبى شيبة [حم] أحمد [خ] البخاري [م] مسلم [د] أبو داود [ت] الترمذي [ن] النسائي [هـ] ابن ماجة عن أبى أيوبٍ

See similar narrations below:

Collected by Bukhārī, Nasāʾī, Ibn Ḥibbān, Ṭabarānī, Nasāʾī's Kubrá, Suyūṭī
bukhari:144Ādam > Ibn Abū Dhiʾb > al-Zuhrī > ʿAṭāʾ b. Yazīd al-Laythī > Abū Ayyūb al-Anṣārī

Messenger of Allah ﷺ said, "If anyone of you goes to an open space for answering the call of nature he should neither face nor turn his back towards the Qibla; he should either face the east or the west."  

البخاري:١٤٤حَدَّثَنَا آدَمُ قَالَ حَدَّثَنَا ابْنُ أَبِي ذِئْبٍ قَالَ حَدَّثَنَا الزُّهْرِيُّ عَنْ عَطَاءِ بْنِ يَزِيدَ اللَّيْثِيِّ عَنْ أَبِي أَيُّوبَ الأَنْصَارِيِّ قَالَ

قَالَ رَسُولُ اللَّهِ ﷺ إِذَا أَتَى أَحَدُكُمُ الْغَائِطَ فَلاَ يَسْتَقْبِلِ الْقِبْلَةَ وَلاَ يُوَلِّهَا ظَهْرَهُ شَرِّقُوا أَوْ غَرِّبُوا  

nasai:22Yaʿqūb b. Ibrāhīm > Ghundar > Maʿmar > Ibn Shihāb > ʿAṭāʾ b. Yazīd > Abū Ayyūb al-Anṣārī

"The Messenger of Allah ﷺ said: 'When any one of you goes to defecate, let him not face toward the Qiblah, rather let him face towards the east or the west.'"  

النسائي:٢٢أَخْبَرَنَا يَعْقُوبُ بْنُ إِبْرَاهِيمَ قَالَ أَنْبَأَنَا غُنْدَرٌ قَالَ أَنْبَأَنَا مَعْمَرٌ قَالَ أَنْبَأَنَا ابْنُ شِهَابٍ عَنْ عَطَاءِ بْنِ يَزِيدَ عَنْ أَبِي أَيُّوبَ الأَنْصَارِيِّ قَالَ

قَالَ رَسُولُ اللَّهِ ﷺ إِذَا أَتَى أَحَدُكُمُ الْغَائِطَ فَلاَ يَسْتَقْبِلِ الْقِبْلَةَ وَلَكِنْ لِيُشَرِّقْ أَوْ لِيُغَرِّبْ  

ibnhibban:1416Muḥammad b. al-Ḥasan b. Qutaybah > Ibn Abū al-Sarī > ʿAbd al-Razzāq > Maʿmar > al-Zuhrī > ʿAṭāʾ b. Yazīd > Abū Ayyūb al-Anṣārī

[Machine] The Prophet ﷺ said, "When one of you goes to relieve themselves, do not face the Qibla (the direction of prayer) nor turn your back towards it with your urine or feces, but rather face east or west."  

ابن حبّان:١٤١٦أَخْبَرَنَا مُحَمَّدُ بْنُ الْحَسَنِ بْنِ قُتَيْبَةَ قَالَ حَدَّثَنَا ابْنُ أَبِي السَّرِيِّ قَالَ حَدَّثَنَا عَبْدُ الرَّزَّاقِ قَالَ أَخْبَرَنَا مَعْمَرٌ عَنِ الزُّهْرِيِّ عَنْ عَطَاءِ بْنِ يَزِيدَ عَنْ أَبِي أَيُّوبَ الْأَنْصَارِيِّ

أَنَّ النَّبِيَّ ﷺ قَالَ «إِذَا أَتَى أَحَدُكُمُ الْغَائِطَ فَلَا يَسْتَقْبِلِ الْقِبْلَةَ وَلَا يَسْتَدْبِرْهَا بِغَائِطٍ وَلَا بَوْلٍ وَلَكِنْ شَرِّقُوا أَوْ غَرِّبُوا»  

tabarani:3935Isḥāq b. Ibrāhīm > ʿAbd al-Razzāq > Maʿmar > al-Zuhrī > ʿAṭāʾ b. Yazīd al-Laythī > Abū Ayyūb al-Anṣārī

"The Messenger of Allah ﷺ said: 'When any one of you goes to defecate, let him not face toward the Qiblah, rather let him face towards the east or the west.'" (Using translation from Nasāʾī 22)  

الطبراني:٣٩٣٥حَدَّثَنَا إِسْحَاقُ بْنُ إِبْرَاهِيمَ عَنْ عَبْدِ الرَّزَّاقِ عَنْ مَعْمَرٍ عَنِ الزُّهْرِيِّ عَنْ عَطَاءِ بْنِ يَزِيدَ اللَّيْثِيِّ عَنْ أَبِي أَيُّوبَ الْأَنْصَارِيِّ قَالَ

قَالَ رَسُولُ اللهِ ﷺ «إِذَا أَتَى أَحَدُكُمُ الْغَائِطَ فَلَا يَسْتَقْبِلِ الْقِبْلَةَ وَلَا يَسْتَدْبِرْهَا وَلَكِنْ لِيُشَرِّقْ أَوْ لِيُغَرِّبْ»  

tabarani:3938Abū Shuʿayb al-Ḥarrānī > Yaḥyá b. ʿAbdullāh al-Bābaluttī > Ibn Abū Dhiʾb > al-Zuhrī > ʿAṭāʾ b. Yazīd > Abū Ayyūb

[Machine] That the Messenger of Allah ﷺ said: "Whoever goes to relieve himself, should not face the Qiblah nor turn his back towards it. Rather, face towards the east or the west."  

الطبراني:٣٩٣٨حَدَّثَنَا أَبُو شُعَيْبٍ الْحَرَّانِيُّ ثنا يَحْيَى بْنُ عَبْدِ اللهِ الْبَابَلُتِّيُّ ثنا ابْنُ أَبِي ذِئْبٍ عَنِ الزُّهْرِيِّ عَنْ عَطَاءِ بْنِ يَزِيدَ عَنْ أَبِي أَيُّوبَ

أَنَّ رَسُولَ اللهِ ﷺ قَالَ «مَنْ ذَهَبَ مِنْكُمْ إِلَى الْغَائِطِ فَلَا يَسْتَقْبِلِ الْقِبْلَةَ وَلَا يُوَلِّهَا ظَهْرَهُ شَرِّقُوا أَوْ غَرِّبُوا»  

tabarani:3941Aḥmad b. Ṭāhir b. Ḥarmalah b. Yaḥyá > Ḥarmalah b. Yaḥyá > Idrīs b. Yaḥyá al-Khawlānī > Ḥaywah b. Shurayḥ > ʿAqīl b. Khālid > al-Zuhrī > ʿAṭāʾ b. Yazīd > Abū Ayyūb

[Machine] On the authority of the Prophet ﷺ, he said: "When one of you goes out to relieve himself, let him not face towards the Qibla (direction of prayer) or turn his back towards it, rather let him face east or west."  

الطبراني:٣٩٤١حَدَّثَنَا أَحْمَدُ بْنُ طَاهِرِ بْنِ حَرْمَلَةَ بْنِ يَحْيَى حَدَّثَنِي حَرْمَلَةُ بْنُ يَحْيَى ثنا إِدْرِيسُ بْنُ يَحْيَى الْخَوْلَانِيُّ ثنا حَيْوَةُ بْنُ شُرَيْحٍ عَنْ عَقِيلِ بْنِ خَالِدٍ عَنِ الزُّهْرِيِّ عَنْ عَطَاءِ بْنِ يَزِيدَ عَنْ أَبِي أَيُّوبَ

عَنْ رَسُولِ اللهِ ﷺ قَالَ «إِذَا خَرَجَ أَحَدُكُمْ لِلْغَائِطِ فَلَا يَسْتَقْبِلِ الْقِبْلَةَ وَلَا يَسْتَدْبِرْهَا وَلْيُشَرِّقْ أَوْ لِيُغَرِّبْ»  

tabarani:3942Jaʿfar b. Muḥammad al-Firyābī > Muḥammad b. ʿAzīz > Salāmah b. Rawḥ > ʿAqīl > Ibn Shihāb al-Zuhrī > ʿAṭāʾ b. Yazīd al-Laythī > Abū Ayyūb > Rasūl

[Machine] "Whoever among you goes to relieve themselves, should not face towards the Qibla (direction of prayer) nor turn their back towards it. Rather, turn towards the east or west."  

الطبراني:٣٩٤٢حَدَّثَنَا جَعْفَرُ بْنُ مُحَمَّدٍ الْفِرْيَابِيُّ حَدَّثَنِي مُحَمَّدُ بْنُ عَزِيزٍ ثنا سَلَامَةُ بْنُ رَوْحٍ عَنْ عَقِيلٍ عَنِ ابْنِ شِهَابٍ الزُّهْرِيِّ عَنْ عَطَاءِ بْنِ يَزِيدَ اللَّيْثِيِّ عَنْ أَبِي أَيُّوبَ قَالَ قَالَ رَسُولُ

اللهِ َ «مَنْ ذَهَبَ مِنْكُمُ الْغَائِطَ فَلَا يَسْتَقْبِلِ الْقِبْلَةَ وَلَا يُوَلِّهَا ظَهْرَهُ شَرِّقُوا أَوْ غَرِّبُوا»  

tabarani:3975ʿAbdullāh b. Aḥmad b. Ḥanbal > Muḥammad b. Abū Bakr al-Muqaddamī > Yazīd b. Zurayʿ > Maʿmar > al-Zuhrī > Abū al-Aḥwaṣ > Abū Ayyūb

"The Messenger of Allah ﷺ said: 'When any one of you goes to defecate, let him not face toward the Qiblah, rather let him face towards the east or the west.'" (Using translation from Nasāʾī 22)   

الطبراني:٣٩٧٥حَدَّثَنَا عَبْدُ اللهِ بْنُ أَحْمَدَ بْنِ حَنْبَلٍ حَدَّثَنِي مُحَمَّدُ بْنُ أَبِي بَكْرٍ الْمُقَدَّمِيُّ ثنا يَزِيدُ بْنُ زُرَيْعٍ عَنْ مَعْمَرٍ عَنِ الزُّهْرِيِّ عَنْ أَبِي الْأَحْوَصِ عَنْ أَبِي أَيُّوبَ ؓ قَالَ

قَالَ رَسُولُ اللهِ ﷺ «إِذَا أَتَى أَحَدُكُمُ الْغَائِطَ فَلَا يَسْتَقْبِلِ الْقِبْلَةَ»  

nasai-kubra:21Yaʿqūb b. Ibrāhīm > Ghundar > Maʿmar > Ibn Shihāb > ʿAṭāʾ b. Yazīd > Abū Ayyūb al-Anṣārī

"The Messenger of Allah ﷺ said: 'When any one of you goes to defecate, let him not face toward the Qiblah, rather let him face towards the east or the west.'" (Using translation from Nasāʾī 22)  

الكبرى للنسائي:٢١أَخْبَرَنَا يَعْقُوبُ بْنُ إِبْرَاهِيمَ قَالَ أَخْبَرَنَا غُنْدَرٌ قَالَ حَدَّثَنَا مَعْمَرٌ قَالَ أَخْبَرَنَا ابْنُ شِهَابٍ عَنْ عَطَاءِ بْنِ يَزِيدَ عَنْ أَبِي أَيُّوبَ الْأَنْصَارِيُّ قَالَ

قَالَ رَسُولُ اللهِ ﷺ «إِذَا أَتَى أَحَدُكُمُ الْغَائِطَ فَلَا يَسْتَقْبِلِ الْقِبْلَةَ وَلَكِنْ لِيُشَرِّقْ أَوْ لِيُغَرِّبْ»  

suyuti:983a

"Do not face towards the Qiblah nor turn your backs toward it when defecating or urinating, rather face toward the east or the west." (Using translation from Nasāʾī 21)   

السيوطي:٩٨٣a

"إذا أتيتم الغائط فلا تستقبلوا القبلَة ولا تستدبروها ببولٍ ولا غائطٍ، ولكن شرِّقوا أو غربوا ".  

[ص] سعيد بن منصور [خ] البخاري [م] مسلم [د] أبو داود [ت] الترمذي [ن] النسائي عن أبى أيوب، قال [ت] الترمذي هو أحسن شئ في الباب وأصح