Sunan an-Nasa'i, Book 1, Hadith 23 (Nasa'i 23)

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."