Sunan at-Tirmithiy كتاب الطهارة باب ما جاء من الرخصة فى ذلك

حَدَّثَنَا هَنَّادٌ حَدَّثَنَا عَبْدَةُ بْنُ سُلَيْمَانَ عَنْ عُبَيْدِ اللَّهِ بْنِ عُمَرَ عَنْ مُحَمَّدِ بْنِ يَحْيَى بْنِ حَبَّانَ عَنْ عَمِّهِ وَاسِعِ بْنِ حَبَّانَ عَنِ ابْنِ عُمَرَ قَالَ رَقِيتُ يَوْمًا عَلَى بَيْتِ حَفْصَةَ فَرَأَيْتُ النَّبِىَّ صلى الله عليه وسلم عَلَى حَاجَتِهِ مُسْتَقْبِلَ الشَّأْمِ مُسْتَدْبِرَ الْكَعْبَةِ. قَالَ أَبُو عِيسَى هَذَا حَدِيثٌ حَسَنٌ صَحِيحٌ.
One day, I climbed Ḥafṣah's(1) house and saw the Prophet, peace and blessings of God be upon him, answering the call of nature, facing the Levant, turning his back to the Ka'bah2 (but there was a screen covering him).
1: The narrator's sister , Ḥafṣah Bint-'Umar Ibnul-Khaṭṭāb , the wife of the Prophet, peace and blessings of God be upon him. 2: The most venerable structure in Islā m, situated within the Sanctified Mosque of Makkah. During prayer, Muslims face in its direction, wherever they are in the world.