Marwan al-Asfar said: I saw Ibn Umar make his camel kneel down facing the qiblah, then he sat down urinating in its direction. So I said: Abu Abdur Rahman, has this not been forbidden? He replied: Why not, that was forbidden only in open country; but when there is something between you and the qiblah that conceals you, then there is no harm.
Hadith Referenceسنن ابي داود / كتاب الطهارة / 11
Hadith Gradingالألبانی:حسن | زبیر علی زئی:ضعيف, إسناده ضعيف, الحسن بن ذكوان مدلس (طبقات المدلسين : 3/70) وعنعن, انوار الصحيفه، صفحه نمبر 13
Hadith Takhrij« تفرد به أبو داود ، (تحفة الأشراف: 7451) (حسن) »
Brief Explanation
1؎ : It is as if facing towards or turning one's back to the qiblah while relieving oneself (urination or defecation) in an open place is prohibited. However, in such a place where there is something serving as a barrier from the direction of the qiblah, then there is no harm in relieving oneself (urination or defecation) while facing towards or turning one's back to the qiblah. Nevertheless, the matter of caution is that the respect of the qiblah should be observed in every place.
Explanation & Benefits
Shaykh Umar Farooq Saeedi
Benefits and Issues This narration is weak, and if its authenticity is established, this action is the evidence for those scholars who consider it permissible to face towards or turn one's back to the Qiblah in an enclosed place (i.e., the toilet) or behind a screen. And the well-known juristic principle is that where there appears to be a contradiction between the explicit statement of the Messenger of Allah (sallallahu alayhi wa sallam) and his action, then for the Ummah, the authoritative source is the statement of the Messenger of Allah (sallallahu alayhi wa sallam). Therefore, here there is no contradiction between the explicit statement and the action of the Messenger of Allah (sallallahu alayhi wa sallam); rather, his action is specific to him, and for the Ummah, the authoritative source is the statement which has been mentioned above. Or, according to Imam Shafi'i (rahimahullah), the prohibition is general, but there is concession in houses or constructed toilets. And according to Imam Abu Hanifah (rahimahullah), the prohibition is of a discouraging (tanzihi) nature, and the action is to clarify permissibility. In any case, caution lies in refraining from facing towards or turning one's back to the Qiblah while relieving oneself. [نيل الاوطار، ج : 1 باب نهي المتخلي عن استقبال القبلة واستدبارها]
Source: Sunan Abu Dawood – Commentary by Shaykh Umar Farooq Saeedi, Page: 11