Masjid al-القبلةtayn (المسجد of the Two القبلةs) marks the location where, during a congregational الصلاة in 2 AH (624 CE), القرآنic command was received to change the الصلاة direction from Jerusalem (Bayt al-Maqdis) to مكة (the الكعبة). The congregation turned mid-الصلاة from north to south.
For approximately 16-17 months after the Hijrah to المدينة, Muslims prayed facing Jerusalem (Bayt al-Maqdis), following the practice of the earlier prophets. However, النبي Muhammad (صلى الله عليه وسلم) desired that the القبلة be changed to the الكعبة in مكة. The القرآن records: 'We have certainly seen the turning of your face toward the heaven, and We will surely turn you to a القبلة with which you will be pleased. So turn your face toward al-المسجد الحرام' (2:144). This revelation came while النبي was leading الصلاة at what is now known as Masjid al-القبلةtayn. The congregation turned from facing Jerusalem (north) to facing مكة (south) mid-الصلاة — an unprecedented event that gave the مسجد its unique name.
The changing of the القبلة was far more than a directional adjustment — it was a defining moment in Islamic identity. It أُسس the الكعبة as the universal direction of Muslim الصلاة, connecting the Muslim Ummah to the Ibrahimic tradition. It distinguished Islam as an independent religious tradition rather than a branch of Judaism or Christianity. It also served as a test of faith: some hypocrites and doubters used the change to question النبي's authority, while true believers accepted it as divine wisdom. The القرآن addressed the controversy directly: 'The foolish among the people will say, What has turned them away from their القبلة, which they used to face? Say: To Allah belongs the east and the west. He guides whom He wills to a straight path' (2:142).
Masjid al-القبلةtayn is located approximately 4 kilometers northwest of Masjid al-Nabawi. The original مسجد had two mihrabs (الصلاة niches) — one facing Jerusalem and one facing مكة — symbolizing the transition. The مسجد has been renovated and expanded over the centuries, and the current structure is a modern building with two minarets and two domes, one white and one blue. It remains a functioning مسجد where the five daily الصلوات are held. For الحجاج, visiting this مسجد is a tangible connection to one of the pivotal moments in early Islamic تاريخ.