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.
3 min read

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.

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.

Hotels near the Prophet's Mosque
Compare the walk, the view and the price, then book in minutes.
See the hotelsSources
- Quran 2:144: the change of qibla · Checked 9 Nov 2026
- Sahih al-Bukhari 40: the first prayer toward the Kaaba · Checked 9 Nov 2026
- Sahih al-Bukhari 403: the people of Quba turn during Fajr · Checked 9 Nov 2026
- Sunan Ibn Majah 1412: prayer in Quba Mosque · Checked 9 Nov 2026
- Wikipedia: Masjid al-Qiblatayn · Checked 9 Nov 2026
- Wikipedia (Arabic): مسجد القبلتين · Checked 9 Nov 2026
- Arab News: King Salman orders Qiblatain Mosque to open 24 hours a day (6 October 2025) · Checked 9 Nov 2026


