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
Hadith No. 3102
Sahih al Bukhari