Commentary 1ومن كان في المسجد الحرام صلى إلى الكعبة إلى إي جوانبها شاء، ومصلى في الكعبة صلى إلى أي جوانبها شاء، وأفضل ذلك أن يقف بين العمودين على لبلاطة الحمراء، ويستقبل الركن الذي فيه الحجر الأسود، ومن كان فوق الكعبة وحضرت الصلاة اضطجع وأومأ برأسه إلى البيت المعمور، ومن كاف فوق أبى قبيس استقبل الكعبة وصلى فان الكعبة ما فوقها إلى السماء. وصلى رسول الله صلى الله عليه وآله إلى البيت المقدس بعد النبوة ثلاث عشرة سنة بمكة وتسعة عشر شهرا بالمدينة، ثم عيرته اليهود فقالوا له: إنك تابع لقبلتنا فاغتم لذلك غما شديدا فلما كان في بعض الليل خرج صلى الله عليه وآله وسلم يقلب وجهه في آفاق السماء فلما أصبح صلى الغداة، فلما صلى من الظهر ركعتين جاءه جبرئيل عليه السلام فقال له: " قد نرى تقلب وجهك في السماء فلنولينك قبلة ترضاها فول وجهك شطر المسجد الحرام الآية " ثم أخذ بيد النبي صلى الله عليه وآله فحول وجهه إلى الكعبة وحول من خلفه وجوههم حتى قام الرجال مقام النساء والنساء مقام الرجال فكان أول صلاته إلى بيت المقدس وآخرها إلى الكعبة، وبلغ الخبر مسجدا بالمدينة وقد صلى أهله من العصر ركعتين فحولوا نحو الكعبة، فكانت أول صلاتهم إلى بيت المقدس وآخرها إلى الكعبة فسمي ذلك المسجد مسجد القبلتين فقال المسلمون: صلاتنا إلى بيت - المقدس تضيع يا رسول الله؟ فأنزل الله عز وجل " وما كان الله ليضيع إيمانكم " يعني صلاتكم إلى بيت المقدس، وقد أخرجت الخبر في ذلك على وجهه في كتاب النبوة.
For those within Masjid al-Haram, it is permissible to face any side of the Ka’ba during prayer. One praying inside the Ka’ba may also face any of its walls. However, the best position is to stand between the two columns on the red tile and face the corner containing the Black Stone. If someone is above the Ka’ba and it is time for prayer, they should lie down and incline their head toward the Bayt al-Ma'mur (Heavenly House). Similarly, anyone praying on Mount Abu Qubays should face the Ka’ba, as the Qiblah extends upward to the sky. The Prophet (saws) prayed toward Bayt al-Maqdis (Jerusalem) for thirteen years in Makkah after receiving prophethood and for nineteen months in Madinah. The Jews mocked him, saying that he was following their Qiblah, causing him great distress. One night, he turned his face toward the heavens in anticipation, and in the morning, after completing two units (rak'ahs) of the Dhuhr prayer, Archangel Jibril (a.s) came to him and said: "We have seen you turning your face toward the sky, so We shall turn you to a Qiblah that pleases you. Turn your face toward the Sacred Mosque (Surah Al-Baqarah 2:144)." Archangel Jibril (a.s) then took the Prophet’s hand and turned him toward the Ka’ba, and those behind him also turned, so that men and women changed their positions. Thus, his initial prayer was toward Bayt al-Maqdis, and the remainder was toward the Ka’ba. The news reached a mosque in Madinah where people had already prayed two rak'ahs of 'Asr. They turned toward the Ka’ba, and so their initial prayer direction was toward Bayt al-Maqdis and its completion was toward the Ka’ba. This mosque became known as Masjid al-Qiblatayn (the Mosque of the Two Qiblahs). The Muslims then asked: "O’ Messenger of Allah (saws), what happens to our prayers toward Bayt al-Maqdis?" Allah (swt) revealed: "Allah (swt) would not make your faith to be in vain (Surah Al-Baqarah 2:143)," meaning that their prayers toward Bayt al-Maqdis were accepted.