Skip to content
JiwarStays

Masjid al-Qiblatayn in Madinah: its story and how to visit

Where the qibla turned from Jerusalem to the Kaaba: the story of Masjid al-Qiblatayn, where it is in Madinah, its opening hours and what to do there.

By Mahmoud Sameh

3 min read

The main entrance of Masjid al-Qiblatayn and its white minarets, with visitors at the door

Masjid al-Qiblatayn, "the mosque of the two qiblas", stands in the north-west of Madinah. It was once known as the mosque of Banu Salimah, and Muslims remember it as the place where the qibla turned from Jerusalem to the Kaaba in the middle of a prayer. Today it is a white mosque with two domes and two minarets, open day and night, and nearly every ziyarat tour of the city stops here.

The story of the two qiblas

When the Prophet ﷺ came to Madinah, he prayed toward Bayt al-Maqdis in Jerusalem for sixteen or seventeen months, though he wished his qibla were the Kaaba, as al-Bara' ibn 'Azib reports (al-Bukhari). Then, in the second year of the Hijrah, the verse came: "We have certainly seen the turning of your face toward the heaven, and We will surely turn you to a qibla with which you will be pleased. So turn your face toward al-Masjid al-Haram. And wherever you are, turn your faces toward it" (Al-Baqarah 2:144).

The best-known account in the books of Seerah says the verse came while the Prophet ﷺ was leading his companions in prayer in the mosque of Banu Salimah. He turned toward the Kaaba in the middle of the prayer, the rows turned behind him, and the mosque has been called al-Qiblatayn ever since.

Sahih al-Bukhari tells it a little differently. The first prayer the Prophet ﷺ led toward the Kaaba was Asr, and a man who had prayed it with him passed a mosque whose people were bowing. He said: "I testify by Allah that I have prayed with the Messenger of Allah ﷺ facing Makkah," and they turned, as they were, toward the House. The people of Quba heard the news while praying Fajr, and turned the same way (al-Bukhari).

The reports differ on which prayer it was and in which mosque. They agree that the companions turned toward the Kaaba where they stood, in the middle of their prayer.

Where it is and how to get there

About 5 km north-west of the Prophet's Mosque, on Khalid ibn al-Walid Road near King Abdullah Road (the second ring road), at the edge of the Harrat al-Wabrah lava field, in what was once the land of Banu Salimah. A taxi or an app ride takes about 15 minutes from the central area, and most ziyarat tours bring you here along with Quba, the Seven Mosques and Uhud.

The mosque today

  • The building dates from 1987 (1408 AH), when the mosque was rebuilt under King Fahd to a design by the architect Abdel-Wahed El-Wakil. Earlier rulers renewed it too, among them Umar ibn Abd al-Aziz and, in 950 AH, the Ottoman sultan Suleiman the Magnificent.
  • It has two domes and two minarets, and holds about 2,000 worshippers.
  • For centuries it had two mihrabs, one toward Jerusalem and one toward the Kaaba. The Jerusalem mihrab was taken out in the 1987 rebuilding, and a second dome now stands over the spot to recall the first qibla.
  • Since October 2025 the mosque has been open 24 hours a day, on the order of King Salman.
  • Women have their own prayer hall with a separate entrance.
The mihrab of Masjid al-Qiblatayn, with worshippers in front of it
The mihrab of Masjid al-Qiblatayn, facing the Kaaba.

Is there a special reward for praying here?

No hadith gives a special reward for praying in Masjid al-Qiblatayn, as there is for Quba, where the Prophet ﷺ said one prayer carries a reward like that of an Umrah (Ibn Majah). You pray here as in any mosque: two rak'ahs to greet the mosque when you come in, and the obligatory prayer with the congregation if you arrive at its time. There is no special dua for this mosque. Quba's reward is explained in our guide to Quba Mosque.

When to go

  • Any time, since it never closes. Ziyarat groups mostly come in the morning, so evenings are often calmer.
  • Twenty minutes to half an hour is enough.
  • Fit it into one morning with Quba Mosque and Mount Uhud; the Seven Mosques are close by. The rest of the city's sites are in the ziyarat in Madinah.
The Mosque of Salman al-Farisi, one of the Seven Mosques
The Seven Mosques are a short drive from Masjid al-Qiblatayn.

Hotels near the Prophet's Mosque

Compare the walk, the view and the price, then book in minutes.

See the hotels

Sources