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."
Arabic/English book reference: Vol. 1, Book 1, Hadith 23