حَدَّثَنَا إِبْرَاهِيمُ بْنُ الْمُنْذِرِ، حَدَّثَنَا أَنَسُ بْنُ عِيَاضٍ، عَنْ عُبَيْدِ اللَّهِ، عَنْ مُحَمَّدِ بْنِ يَحْيَى بْنِ حَبَّانَ، عَنْ وَاسِعِ بْنِ حَبَّانَ، عَنْ عَبْدِ اللَّهِ بْنِ عُمَرَ ـ رضى الله عنهما ـ قَالَ ارْتَقَيْتُ فَوْقَ بَيْتِ حَفْصَةَ، فَرَأَيْتُ النَّبِيَّ صلى الله عليه وسلم يَقْضِي حَاجَتَهُ، مُسْتَدْبِرَ الْقِبْلَةِ، مُسْتَقْبِلَ الشَّأْمِ.
Narrated `Abdullah bin `Umar:
Once I went upstairs in Hafsa's house and saw the Prophet (ﷺ) answering the call of nature with his back towards the Qibla and facing Sham.
Reference: Sahih al-Bukhari 3102
In-book : Book 57, Hadith 11
USC-MSA web (English) : Vol. 4, Book 53, Hadith 334 (deprecated)