كتاب الطهارة وسننها
1  
The Book of Purification and its Sunnah
(18)
Chapter: Permission concerning that in the toilet with walls and its permissiblity, not in deserts
(18)
باب الرُّخْصَةِ فِي ذَلِكَ فِي الْكُنُفِ وَإِبَاحَتِهِ دُونَ الصَّحَارَى
Sunan Ibn Majah 322
'Abdullah bin 'Umar said:
"People say: 'When you sit to relieve yourself, do not face the Qiblah.' But one day I climbed up onto the roof of our house, and I saw the Messenger of Allah sitting on two bricks (to relieve himself), facing the direction of Baitul-Maqdis (Jerusalem)." This is a Hadith narrated by Yazid bin Harun.
حَدَّثَنَا هِشَامُ بْنُ عَمَّارٍ، حَدَّثَنَا عَبْدُ الْحَمِيدِ بْنُ حَبِيبٍ، حَدَّثَنَا الأَوْزَاعِيُّ، حَدَّثَنِي يَحْيَى بْنُ سَعِيدٍ الأَنْصَارِيُّ، ح وَحَدَّثَنَا أَبُو بَكْرِ بْنُ خَلاَّدٍ، وَمُحَمَّدُ بْنُ يَحْيَى، قَالاَ حَدَّثَنَا يَزِيدُ بْنُ هَارُونَ، أَنْبَأَنَا يَحْيَى بْنُ سَعِيدٍ، أَنَّ مُحَمَّدَ بْنَ يَحْيَى بْنِ حَبَّانَ، أَخْبَرَهُ أَنَّ عَمَّهُ وَاسِعَ بْنَ حَبَّانَ أَخْبَرَهُ أَنَّ عَبْدَ اللَّهِ بْنَ عُمَرَ قَالَ يَقُولُ أُنَاسٌ إِذَا قَعَدْتَ لِلْغَائِطِ فَلاَ تَسْتَقْبِلِ الْقِبْلَةَ وَلَقَدْ ظَهَرْتُ ذَاتَ يَوْمٍ مِنَ الأَيَّامِ عَلَى ظَهْرِ بَيْتِنَا فَرَأَيْتُ رَسُولَ اللَّهِ ـ صلى الله عليه وسلم ـ قَاعِدًا عَلَى لَبِنَتَيْنِ مُسْتَقْبِلَ بَيْتِ الْمَقْدِسِ ‏.‏ هَذَا حَدِيثُ يَزِيدَ بْنِ هَارُونَ ‏.‏
Grade: Sahih (Darussalam)
Reference : Sunan Ibn Majah 322
In-book reference : Book 1, Hadith 56
English translation : Vol. 1, Book 1, Hadith 322