Home  /  Articles  /  Masjid al-Qiblatain — The Mosque of Two Qiblas

Madinah · Ziyarat Guide

Masjid al-Qiblatain — The Mosque of Two Qiblas

Masjid al-Qiblatain, the white mosque of the two qiblas with its two minarets, seen from its marble courtyard in Madinah under a deep blue sky
Masjid al-Qiblatain, Madinah · Photo via CS Madinah

About 5 km north-west of the Prophet's Mosque stands a white mosque with a story no other mosque on earth can tell. Masjid al-Qiblatain — the Mosque of the Two Qiblas — was built by Sawad ibn Ghanam ibn Ka'ab in 2 AH (623/624 CE), and it was here, in the middle of a prayer, that the direction of Muslim prayer changed forever: from Jerusalem to the Kaaba in Makkah. Pilgrims visit it on almost every Madinah stay. Be clear about its place, as with all ziyarat: visiting Qiblatain is voluntary, not a rite of Umrah — there is no permit, no ticket and no prescribed ritual, only one of the great turning points of the Seerah. Our Madinah Ziyarat Guide shows where it fits into your days in the city.

The day the Qibla changed: For the first part of his time in Madinah, the Prophet ﷺ and the believers prayed facing Masjid al-Aqsa in Jerusalem, as the earlier prophets had done. In 2 AH — the majority dating is mid-Rajab, though some reports say 15 Sha'ban — the command came down while the Prophet ﷺ was leading prayer in this mosque:

فَلَنُوَلِّيَنَّكَ قِبْلَةً تَرْضَاهَا ۚ فَوَلِّ وَجْهَكَ شَطْرَ الْمَسْجِدِ الْحَرَامِ

"We will surely turn you to a qiblah with which you will be pleased. So turn your face toward al-Masjid al-Haram" (Qur'an 2:144).

One prayer, two directions: Al-Bara' ibn Azib narrates that the first prayer the Prophet ﷺ offered facing the Kaaba was Asr. A man who had prayed with him then passed a congregation of the Ansar who were still praying toward Jerusalem; he testified that he had just prayed with the Prophet ﷺ facing Makkah — and they turned around in the middle of their prayer (Sahih al-Bukhari 40). Sahih Muslim 526 records the same turn taking place during Fajr. A congregation that began its prayer toward one qibla and finished it toward another — that is why this mosque carries the name it does.

Two mihrabs — and what remains of them: For centuries the mosque kept two mihrabs, one facing Jerusalem and one facing Makkah, a physical record of the change. In the 1987 rebuild under King Fahd, the Jerusalem-facing mihrab was removed so that no one could mistake it for a direction of prayer; in its place a small marker mihrab was installed under a secondary false dome, kept as history. The Makkah-facing mihrab was retained, and it alone is the qibla of the mosque today.

What to see and do today:

  • Pray two rak'ahs of Tahiyyat al-Masjid — the greeting of the mosque — facing the Makkah mihrab, as in any mosque. There is no special prayer prescribed for this place; its honour is the event that happened here.
  • Look for the marker mihrab under the smaller dome: it marks the old Jerusalem direction. It is history only — a reminder of the first qibla and of the day it changed. Prayer is only ever toward Makkah.
  • Take a quiet minute with the story. The congregation that turned mid-prayer did so on one man's truthful report — a lesson in trusting the word of the truthful and obeying a command the moment it reaches you.
  • Combine the visit. Qiblatain pairs naturally with Mount Uhud and Masjid Quba in a single Madinah ziyarat round; our Madinah Ziyarat Guide lays out the order, and our Makkah Ziyarat guide covers the matching visits in the first city.

Getting there: The mosque lies about 5 km north-west of the Prophet's Mosque — roughly 10 to 15 minutes by taxi or ride-hailing car. Most pilgrims hire a car for the full Madinah round (Qiblatain, Quba and Uhud together), typically about SAR 150–200 per vehicle at 2026 operator fares, agreed before you set off. Go in the early morning or late afternoon to avoid the midday heat, and allow 30 to 45 minutes at the mosque itself.

Quick questions:

  • Why is it called the Mosque of Two Qiblas? Because a prayer was prayed here in 2 AH that began facing Jerusalem and, when the command of Qur'an 2:144 arrived mid-prayer, finished facing the Kaaba in Makkah (Sahih al-Bukhari 40; Sahih Muslim 526).
  • Can I pray facing the old Jerusalem marker? No. The marker mihrab is kept as history only. Since 2 AH the qibla of the whole ummah is the Kaaba, and every prayer at Qiblatain is offered facing the Makkah mihrab.
  • Do I need a permit or ticket? No. Masjid al-Qiblatain is a neighbourhood mosque open to visitors — walk in respectfully outside the busiest prayer-time crush, greet the mosque with two rak'ahs, and leave it as you found it.

Sources: Qur'an 2:144 · Sahih al-Bukhari 40 — Sunnah.com ↗ · Sahih Muslim 526 — Sunnah.com ↗