It was narrated that 'Abdullah bin 'Umar said:
"I climbed on the roof of our house and saw the Messenger of Allah (ﷺ) on two bricks, facing toward Bait Al-Maqdis (jerusalem), relieving himself." (ES)
Arabic/English book reference (ES): Vol. 1, Book 1, Hadith 23 (ES)