Jami` at-Tirmidhi, Book 1, Hadith 11 (Tirmidhi 11)

Ibn 'Umar said:

"One day I climbed on Hafsah's house, and I saw the Prophet relieving himself while facing Ash-Sham, with his back toward the Ka'bah."