And our evidence is the saying of Allah Almighty: {And wherever you are, turn your faces toward it} (36). The one praying inside it or upon its roof is not facing its direction. As for the optional prayer, its foundation is on ease and leniency, as evidenced by the performance of it while sitting and toward a direction other than the qibla while traveling on a mount.
Section: The optional prayer is valid inside the Kaaba and upon its roof. We know of no disagreement regarding this, because the Prophet (may Allah bless him and grant him peace) prayed two rak'as inside the House (37). However, if one prays facing the door or upon the roof, and there is something of the construction of the Kaaba in front of him connected to it, his prayer is valid. If there is nothing upright in front of him, or if there is loose brick in front of him that is not built into the structure, or timber that is not nailed into it, then our companions said: His prayer is not valid, because he is not facing anything of it. If the timber is nailed and the brick is built into the structure, his prayer is valid, because that is a part of it. The better view is that it is not a condition that something of it be in front of him, because the obligatory act is to face its location and its air space, not its walls, as evidenced by the fact that if the Kaaba were demolished, prayer toward its location would be valid. Likewise, if one prays upon a high mountain that is outside the parallel of its position, his prayer toward its air space would be valid, and so it is here.
Section: There are two narrations regarding prayer in a usurped location. The first is that it is not valid. This is one of the two opinions of Al-Shafi'i. The second is that it is valid. This is the opinion of Abu Hanifa and Malik, and the second opinion of Al-Shafi'i, because the prohibition does not return to the prayer itself, and thus it does not prevent its validity, just as if one prays while seeing a drowning person whom it is possible to save but he does not save him, or a fire that he is capable of extinguishing but he does not extinguish it,
(36) Surah Al-Baqarah 150. (37) Reported by Abu Dawud, in: Chapter on Prayer in the Kaaba, from the Book of Hajj Rituals. Sunan Abi Dawud 1/467. And Imam Ahmad, in: Al-Musnad 2/46, 6/15. Regarding prayer in the House, see: what was reported by Al-Bukhari, in: Chapter on Prayer between pillars without a congregation, from the Book of Prayer. Sahih al-Bukhari 1/134. And Muslim, in: Chapter on the desirability of entering the Kaaba for the pilgrim and others, and prayer therein... etc., from the Book of Hajj. Sahih Muslim 2/966. And Al-Nasa'i, in: Chapter on the extent of that, from the Book of the Qibla. Al-Mujtaba 2/49. And Imam Malik, in: Chapter on Prayer in the House, shortening the prayer, and hastening the sermon at Arafat, from the Book of Hajj. Al-Muwatta 1/398. And Imam Ahmad, in: Al-Musnad 2/113, 138, 6/13. (38) In M: "yumkinuhu" (it is possible for him).
ولَنا، قَوْلُ اللهِ تعالى: {وَحَيْثُ مَا كُنْتُمْ فَوَلُّوا وُجُوهَكُمْ شَطْرَهُ} (٣٦). والمُصَلِّى فيها أو على ظَهْرِها غيرُ مُسْتَقْبِلٍ لِجِهَتها، والنَّافِلَةُ مَبْنَاها على التَّخْفِيفِ والمُسامَحَةِ، بدَلِيلِ صَلاتِها قاعِدًا، وإلى غيرِ القِبْلَةِ، في السَّفَرِ على الرَّاحِلَةِ.
فصل: وتَصِحُّ النَّافِلَةُ في الكَعْبَةِ وعلى ظَهْرِها. لا نَعْلَمُ فيه خِلافًا؛ لأنَّ النَّبِيَّ -صلى اللَّه عليه وسلم- صَلَّى في البَيْتِ رَكْعَتَيْنِ (٣٧). إلَّا أنَّه إنْ صَلَّى تِلْقَاءَ البابِ أو على ظَهْرِها، وكان بين يَدَيْهِ شيءٌ من بِنَاءِ الكَعْبَةِ مُتَّصِلٌ بها، صَحَّتْ صَلاتُه، فإنْ لم يَكُنْ بين يَدَيْهِ شَىءٌ شَاخِصٌ، أو كان بين يَدَيْه آجُرٌّ مُعَبَّأٌ غيرُ مَبْنِىٍّ، أو خَشَبٌ غيرُ مَسْمُورٍ فيها، فقال أصْحابُنا: لا تَصِحُّ صَلاتُه؛ لأنَّه غيرُ مُسْتَقْبِلٍ لشىءٍ منها. وإن كان الخَشَبُ مَسْمُورًا، والآجُرُّ مَبْنيًّا، صَحَّتْ صَلاتُه؛ لأنَّ ذلكَ تابِعٌ لها. والأوْلَى أنَّه لا يُشْتَرَطُ كَوْنُ شيءٍ منها بين يَدَيْه؛ لأنَّ الوَاجِبَ اسْتِقْبَالُ مَوْضِعِها وهَوَائِها، دُونَ حِيطَانِها، بدليلِ ما لو انْهَدَمتِ الكَعْبَةُ، صَحَّتِ الصَّلاةُ إلى مَوْضِعِها، ولو صَلَّى على جَبَلٍ عالٍ يَخْرُجُ عن مُسَامَتَتِها، صَحَّتْ صَلاتُه إلى هَوَائِها، كذا ههُنا.
فصل: وفى الصَّلاةِ في المَوْضِعِ المَغْصُوبِ رِوَايتانِ: إحْدَاهما، لا تَصِحُّ. وهو أحدُ قَوْلَىِ الشَّافِعِيِّ. والثَّانِيةُ، تَصِحُّ. وهو قَوْلُ أبي حنيفةَ، ومَالِكٍ، والقَوْلُ الثَّانِى، للشَّافِعِيِّ؛ لأنَّ النَّهْىَ لا يَعُودُ إلى الصَّلاةِ، فلم يَمْنَعْ صِحَّتَها، كما لو صَلَّى وهو يَرَى غَرِيقًا، يُمْكِنُ (٣٨) إنْقَاذُه، فلم يُنْقِذْهُ، أو حَرِيقًا يَقْدِرُ على إطْفَائِه، فلم يُطْفِئْه،
(٣٦) سورة البقرة ١٥٠.(٣٧) أخرجه أبو داود، في: باب الصلاة في الكعبة، من كتاب المناسك. سنن أبي داود ١/ ٤٦٧. والإمام أحمد، في: المسند ٢/ ٤٦، ٦/ ١٥. وعن الصلاة في البيت انظر: ما أخرجه البخاري، في: باب الصلاة بين السوارى في غير جماعة، من كتاب الصلاة. صحيح البخاري ١/ ١٣٤. ومسلم، في: باب استحباب دخول الكعبة للحاج وغيره، والصلاة فيها. . . إلخ من كتاب الحج. صحيح مسلم ٢/ ٩٦٦. والنسائي، في: باب مقدار ذلك، من كتاب القبلة. المجتبى ٢/ ٤٩. والإمام مالك، في: باب الصلاة في البيت وقصر الصلاة وتعجيل الخطبة بعرفة، من كتاب الحج. الموطأ ١/ ٣٩٨. والإمام أحمد، في: المسند ٢/ ١١٣، ١٣٨، ٦/ ١٣.(٣٨) في م: "يمكنه".