Sayyiduna Abdullah bin Umar (may Allah be pleased with him) narrates: People say, "When you sit to relieve yourself, do not face the Qiblah or face Bayt al-Maqdis." However, once I climbed onto the roof of my house and I saw the Prophet Muhammad (peace and blessings be upon him) relieving himself facing Bayt al-Maqdis.
Hadith Referenceصحیح ابن حبان / كتاب الطهارة / 1421
Hadith Gradingفضيلة الشيخ الإمام محمد ناصر الدين الألبانيصحيح - «صحيح أبي داود» (9).فضيلة الشيخ العلّامة شُعيب الأرناؤوطإسناده صحيح على شرط الشيخين.