4. Wudūʾ (Minor Ablution)

٤۔ كتاب الوضوء

4.11 While urinating or defecating, never face the Qiblah except when you are screened by a building or a wall or something like that

٤۔١١ باب لاَ تُسْتَقْبَلُ الْقِبْلَةُ بِغَائِطٍ أَوْ بَوْلٍ إِلاَّ عِنْدَ الْبِنَاءِ جِدَارٍ أَوْ نَحْوِهِ

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."  

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

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