Abdullah bin Umar reported,

I climbed onto the roof of the house and saw the Messenger of Allah ﷺ sitting on two bricks facing Bayt al-Maqdis to relieve himself.

Abu Dawud 12

Sahih

حدثنا عبد الله بن مسلمة عن مالك عن يحيى بن سعيد عن محمد بن يحيى بن حبان عن عمه واسع بن حبان

عن عبد الله بن عمر قال

لقد ارتقيت على ظهر البيت فرأيت رسول الله ﷺ على لبنتين مستقبل بيت المقدس لحاجته

أبو داود 12صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Abu Dawud
Book
Purification
Chapter
Permission regarding that
Numbering
Darussalam 12
Abu Dawud 12