عَنْ أَبِي أَيُّوبَ الْأَنْصَارِيِّ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «إِذَا أَتَيْتُمُ الْغَائِطَ فَلَا تَسْتَقْبِلُوا الْقِبْلَةَ وَلَا تَسْتَدْبِرُوهَا وَلَكِنْ شَرِّقُوا أَوْ غَرِّبُوا»
قَالَ الشَّيْخ الإِمَام محيي السّنة : هَذَا الْحَدِيثُ فِي الصَّحْرَاءِ وَأَمَّا فِي الْبُنْيَانِ فَلَا بَأْس لما رُوِيَ:
عَن عبد الله بن عمر قَالَ: ارْتَقَيْتُ فَوْقَ بَيْتِ حَفْصَةَ لِبَعْضِ حَاجَتِي فَرَأَيْتُ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ يقْضِي حَاجته مستدبر الْقبْلَة مُسْتَقْبل الشَّام
Translation
Anas reported that when God’s messenger entered the privy he used to say, "O God, I seek refuge in Thee from male and female devils.”* *One might be inclined to translate this phrase as "from infidelity and act of disobedience,”but the tradition from Zaid b. Arqam (p. 76) is very explicit, and so the translation above is probably the correct one.PT-2 (12-71.)(Bukhari and Muslim).