1. Purification
١۔ كتاب الطهارة وسننها
"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.
أُنَاسٌ إِذَا قَعَدْتَ لِلْغَائِطِ فَلاَ تَسْتَقْبِلِ الْقِبْلَةَ وَلَقَدْ ظَهَرْتُ ذَاتَ يَوْمٍ مِنَ الأَيَّامِ عَلَى ظَهْرِ بَيْتِنَا فَرَأَيْتُ رَسُولَ اللَّهِ ﷺ قَاعِدًا عَلَى لَبِنَتَيْنِ مُسْتَقْبِلَ بَيْتِ الْمَقْدِسِ هَذَا حَدِيثُ يَزِيدَ بْنِ هَارُونَ
"I saw the Messenger of Allah in his (constructed) toilet, facing towards the Qiblah." (Da'if) (One of the narrators) 'Eisa said: "I told that to Sha'bi, and he said: 'Ibn 'Umar spoke the truth. As for the words of Abu Hurairah, he said: "In the desert do not face the Qiblah nor turn one's back towards it." As for the words of Ibn 'Umar, he said: "In the (constructed) toilet there is no Qiblah so turn in whatever direction you want." Another chain with similar wording.
رَأَيْتُ رَسُولَ اللَّهِ ﷺ فِي كَنِيفِهِ مُسْتَقْبِلَ الْقِبْلَةِ قَالَ عِيسَى فَقُلْتُ ذَلِكَ لِلشَّعْبِيِّ فَقَالَ صَدَقَ ابْنُ عُمَرَ وَصَدَقَ أَبُو هُرَيْرَةَ أَمَّا قَوْلُ أَبِي هُرَيْرَةَ فَقَالَ فِي الصَّحْرَاءِ لاَ يَسْتَقْبِلِ الْقِبْلَةَ وَلاَ يَسْتَدْبِرْهَا وَأَمَّا قَوْلُ ابْنِ عُمَرَ فَإِنَّ الْكَنِيفَ لَيْسَ فِيهِ قِبْلَةٌ اسْتَقْبِلْ فِيهِ حَيْثُ شِئْتَ قَالَ أَبُو الْحَسَنِ بْنُ سَلَمَةَ وَحَدَّثَنَا أَبُو حَاتِمٍ حَدَّثَنَا عُبَيْدُ اللَّهِ بْنُ مُوسَى فَذَكَرَ نَحْوَهُ
"Mention was made in the presence of the Messenger of Allah of some people who did not like to face towards the Qiblah with their private parts. He said: 'I think that they do that. Turn my seat (in the toilet) to face the Qiblah.'" (Da'if) Another chain with similar wording.
ذُكِرَ عِنْدَ رَسُولِ اللَّهِ ﷺ قَوْمٌ يَكْرَهُونَ أَنْ يَسْتَقْبِلُوا بِفُرُوجِهِمُ الْقِبْلَةَ فَقَالَ أُرَاهُمْ قَدْ فَعَلُوهَا اسْتَقْبِلُوا بِمَقْعَدَتِي الْقِبْلَةَ قَالَ أَبُو الْحَسَنِ الْقَطَّانُ حَدَّثَنَا يَحْيَى بْنُ عُبَيْدٍ حَدَّثَنَا عَبْدُ الْعَزِيزِ بْنُ الْمُغِيرَةِ عَنْ خَالِدٍ الْحَذَّاءِ عَنْ خَالِدِ بْنِ أَبِي الصَّلْتِ مِثْلَهُ
"The Messenger of Allah forbade facing the Qiblah when urinating. But I saw him, one year before he died, facing the Qiblah (while urinating)."
نَهَى رَسُولُ اللَّهِ ﷺ أَنْ نَسْتَقْبِلَ الْقِبْلَةَ بِبَوْلٍ فَرَأَيْتُهُ قَبْلَ أَنْ يُقْبَضَ بِعَامٍ يَسْتَقْبِلُهَا