Sahih Bukhari

Hadith #149

Narrated `Abdullah bin `Umar:Once I went up the roof of our house and saw Allah's Messenger (ﷺ) answering the call of nature while sitting over two bricks facing Baitul-Maqdis (Jerusalem). (See Hadith No)