Masjid al-Qiblatain, also spelt Masjid Qiblatain or Masjid al-Qiblatayn, is a mosque in north-west Madinah, Saudi Arabia, about 3.7 km from Masjid an-Nabawi. Its name means “the mosque of the two qiblas”. It is linked with the change of the qiblah, in the second year after the Hijrah, from Jerusalem to the Kaaba in Makkah.
This guide sets out what the Quran and the hadith say about the change of qibla, and why the reports about this mosque differ. It then covers the building, how far it is from your hotel, how to get there and what to do when you arrive.
Quick answer
- The name means “two qiblas”: the mosque is linked with the change of the qiblah from Jerusalem to the Kaaba.
- Reports differ on which prayer it was and in which mosque the people turned.
- It is 3.7 km from Masjid an-Nabawi in a straight line, about 5.6 km by road.
- No special reward is reported for praying here. Pray two rak’ahs when you enter, as in any mosque.
UK travel advice for Saudi Arabia
The UK Foreign, Commonwealth & Development Office (FCDO) currently advises against all but essential travel to Saudi Arabia, and against all travel within 10 km of the border with Yemen. Your travel insurance could be invalid if you travel against this advice. Read the latest GOV.UK travel advice for Saudi Arabia and check your insurance before you book or travel.
What is Masjid al-Qiblatain?
Masjid al-Qiblatain means “the mosque of the two qiblas” (the qiblah is the direction Muslims face in prayer). This working mosque stands on Khalid bin al-Walid Road in Madinah. It is linked with the change of the qiblah from Bayt al-Maqdis in Jerusalem to the Kaaba.
You will see it called the Al-Qiblatain Mosque, Masjid al-Qiblatayn or, in English, the Mosque of the Two Qiblas. Medina is another spelling of Madinah, so you may also see it as the Qiblatain Mosque, Medina. Saudipedia, the encyclopedia of the Saudi Ministry of Media, says the mosque has carried this name since the time of the Prophet Muhammad ﷺ.
A visit is part of learning the history of Madinah, not a rite of Umrah. Its significance is historical: Saudipedia lists it among Madinah’s historical and archaeological mosques. Travel to Umrah’s Madinah ziyarat stops here, and our Umrah packages that include nights in Madinah leave time for it.

The change of qibla in the Quran
The change is described in Surah al-Baqarah. Verse 144 tells the Prophet ﷺ to turn towards al-Masjid al-Haram, and all believers to face it wherever they are.
The verses around it explain the change. Verse 142 says that “the foolish among the people will say” what turned the Muslims from their old qiblah. It answers that the east and the west belong to Allah.
Verse 143 says the earlier qiblah was a test of “who would follow the Messenger”. It adds that Allah would never let the believers’ earlier prayers be lost.
Al-Bara’ ibn ‘Azib said that some Muslims had died before the change, and people did not know what to say about their prayers. Verse 143 was then revealed (Sahih al-Bukhari 4486).
قَدْ نَرَىٰ تَقَلُّبَ وَجْهِكَ فِى ٱلسَّمَآءِ ۖ فَلَنُوَلِّيَنَّكَ قِبْلَةً تَرْضَىٰهَا ۚ فَوَلِّ وَجْهَكَ شَطْرَ ٱلْمَسْجِدِ ٱلْحَرَامِ ۚ وَحَيْثُ مَا كُنتُمْ فَوَلُّوا۟ وُجُوهَكُمْ شَطْرَهُۥ ۗ وَإِنَّ ٱلَّذِينَ أُوتُوا۟ ٱلْكِتَـٰبَ لَيَعْلَمُونَ أَنَّهُ ٱلْحَقُّ مِن رَّبِّهِمْ ۗ وَمَا ٱللَّهُ بِغَـٰفِلٍ عَمَّا يَعْمَلُونَ
Qad nara taqalluba wajhika fis-sama’i, fa-lanuwalliyannaka qiblatan tardaha. Fa-walli wajhaka shatral-Masjidil-Harami, wa haythu ma kuntum fa-wallu wujuhakum shatrah. Wa innal-ladhina utul-kitaba la-ya’lamuna annahul-haqqu mir-rabbihim, wa mallahu bi-ghafilin ‘amma ya’malun.
“We have certainly seen the turning of your face, [O Muḥammad], toward the heaven, and We will surely turn you to a qiblah with which you will be pleased. So turn your face [i.e., yourself] toward al-Masjid al-Ḥarām. And wherever you [believers] are, turn your faces [i.e., yourselves] toward it [in prayer]. Indeed, those who have been given the Scripture [i.e., the Jews and the Christians] well know that it is the truth from their Lord. And Allāh is not unaware of what they do.”
Reference: Quran 2:144, Saheeh International translation
The same command comes again in verse 150: wherever you are, turn your faces towards al-Masjid al-Haram. Since then, Muslims everywhere have faced the Kaaba in prayer.
What the hadith say about the change of qibla
The hadith agree on the change itself, but they place the moment people heard of it in different prayers and different mosques.
Al-Bara’ ibn ‘Azib reported that the Prophet ﷺ prayed facing Bayt al-Maqdis for sixteen or seventeen months after he came to Madinah. He wished to face the Kaaba. Then the command came:
“The first prayer which he offered facing the Ka’ba was the ‘Asr prayer in the company of some people.”
Reference: Sahih al-Bukhari 40
One man who prayed that ‘Asr with him then passed a group of the Ansar, the Muslims of Madinah, at their own ‘Asr prayer. He told them, and they turned towards the Kaaba while still bowing (Sahih al-Bukhari 399, 7252). Jami’ at-Tirmidhi 340 has the same report, graded sahih by Darussalam.
Other reports place the news at dawn. Ibn ‘Umar said the people of Quba were praying Fajr when someone told them of the new command (Sahih al-Bukhari 403, Sahih Muslim 526a). They turned where they stood.
Anas reported that a man from Banu Salama called out to people bowing in the dawn prayer (Sahih Muslim 527). They turned as they were.
Even the length of time is reported in two ways. One narration says sixteen months (Sahih Muslim 525a), another sixteen or seventeen (Sahih Muslim 525b).
Why is it called the Mosque of the Two Qiblas?
The name comes from a report that the Prophet ﷺ was leading Dhuhr in this mosque, the mosque of Banu Salamah, when the command came. He turned mid-prayer. IslamQA notes that Ibn Sa’d gave it without a chain of narrators, so “there can be no certainty that it is sound”.
In the report, the Prophet ﷺ visited Umm Bishr of Banu Salamah, who made food for him. When Dhuhr came, he led two rak’ahs, was commanded to face the Kaaba and turned, “hence that place was named Masjid al-Qiblatayn”.
IslamQA (answer 274076) quotes this from Ibn Sa’d. It also quotes Ibn Hajar: “The reports differ concerning the prayer during which the qiblah was changed, and the mosque in which that happened.”
Saudi official sources tell the Dhuhr account. Saudipedia dates the change to the middle of Sha’ban in the second year of the Hijrah. We set out the reports below and leave the judgement to scholars.
| Report | Prayer | Where people turned | Reference |
|---|---|---|---|
| Al-Bara’ ibn ‘Azib | ‘Asr | The Prophet ﷺ prayed it facing the Kaaba; then a mosque of the Ansar | Bukhari 40, 399; Tirmidhi 340 |
| Ibn ‘Umar | Fajr | Quba | Bukhari 403; Muslim 526a |
| Anas | Fajr | Not named; a man of Banu Salama told them | Muslim 527 |
| The biographers (Ibn Sa’d); Saudi official sources | Dhuhr | The mosque of Banu Salamah, now Masjid al-Qiblatain | IslamQA 274076; Saudipedia |
The history of Masjid Qiblatain
The mosque was first built in the second year of the Hijrah, with palm trunks and fronds. It has been restored and rebuilt several times since. Saudipedia says the clan of Banu Suwad bin Ghannam bin Ka’b built it, on a hilltop of Harrat al-Wabrah overlooking part of Wadi al-Aqiq.

The old building had two sections. An inner section had a mihrab, the prayer niche, facing the Kaaba.
An outer section had a mihrab facing al-Sham, the direction of Jerusalem. Both were built of lime and carved stone.
Saudipedia lists these main stages in the history of Masjid al-Qiblatain:
- 706 CE: Umar bin Abdulaziz restored it, as he did other mosques where the Prophet ﷺ had prayed.
- 1488 CE: Shahin al-Jamali renovated it, after nearly eight hundred years without a restoration.
- 1931: King Abdulaziz ordered it rebuilt, with a wall, its own minaret and an area of 425 m².
- 1987: under King Fahd it was rebuilt again, to about 3,920 m².
- Since then: repairs under King Abdullah and continued care under King Salman.
Inside the mosque today and the Al-Qiblatayn Cultural Centre
Today everyone in Masjid al-Qiblatain prays towards the Kaaba, as Muslims do everywhere. The area around it is being developed as the Al-Qiblatayn Cultural Centre.
Saudipedia describes the project as overseen by the Al-Madinah Region Development Authority. The project spans 7,500 m² and includes courtyards, road works, parking and an expansion of the mosque.
In March 2025 the Saudi Press Agency reported that the plans include a cultural centre, better road access, escalators and lifts. New squares on the north-east side were already open, with shaded areas and parking.

Where is Masjid al-Qiblatain? Distance from Masjid an-Nabawi
Masjid Qiblatain is about 3.7 km west-north-west of Masjid an-Nabawi in a straight line, or about 5.6 km by road. It stands on Khalid bin al-Walid Road, in the north-west of Madinah.
We measured these distances on OpenStreetMap data on 3 November 2026. The straight line runs from the centre of one mosque to the centre of the other.
Official figures are rounder: Saudipedia says “approximately four km” and the Saudi Press Agency says 5 km. Both fit the road distance better than the straight line.
| Place | Distance from Masjid al-Qiblatain (straight line) | Read more |
|---|---|---|
| Masjid an-Nabawi | 3.7 km (about 5.6 km by road) | Our guide to hotels near Masjid an-Nabawi |
| The Seven Mosques (Masjid al-Fath) | 1.8 km | The Battle of the Trench and its sites |
| Uhud martyrs’ cemetery | 4.0 km | The Battle of Uhud |
| Masjid Quba | 6.3 km | Our guide to Masjid Quba |
The Seven Mosques are the closest of these sites, so they pair well with Masjid al-Qiblatain in one trip.
How to get there and what to combine it with
You can reach Masjid al-Qiblatain by taxi or on a ziyarat tour, and it fits into one trip with the Seven Mosques and Uhud. It is about 5.6 km by road from the hotels around Masjid an-Nabawi, a long walk in the heat.
- Taxi: the road trip from Masjid an-Nabawi is about 5.6 km. Our guide to getting around in Madinah explains the options.
- Ziyarat tour: Masjid al-Qiblatain is a stop on the Madinah ziyarat that Travel to Umrah arranges. Our guide to ziyarat places in Makkah and Madinah lists the other sites.
- One half-day: the Seven Mosques are 1.8 km away and the Uhud martyrs’ cemetery 4.0 km. Masjid Quba is 6.3 km away in the south, so it suits another morning.
If you use a wheelchair or walk slowly, the Saudi Press Agency reports that the project around the mosque includes escalators and lifts. Our Umrah tips for pilgrims with disabilities have more help.

Staying near Masjid an-Nabawi makes these trips easy. See our guide to hotels near Masjid an-Nabawi, or ask us about your package’s ziyarat day.
Visiting etiquette: is there a special reward for praying here?
No hadith gives a special reward for praying in Masjid al-Qiblatain. If you go in, pray two rak’ahs before you sit, as you would in any mosque:
“If anyone of you enters a mosque, he should pray two rak`at before sitting.”
Reference: Sahih al-Bukhari 444
Masjid Quba is different. There, a hadith says that a prayer after making wudu at home brings a reward like that of an Umrah. Our guide to Masjid Quba explains it.
Views differ on making a special trip to sites like this one. IslamQA (answer 274076) calls the stories about this mosque historical reports on which “no action is based”.
It also says “it is not recommended for the visitor to Madinah to go and visit any of these places”. Spahic Omer, writing for IslamiCity in 2024, places such sites within “journeying through the earth” and learning history.
We give no ruling: if you are unsure, ask a scholar you trust.
If you visit, dress modestly, keep your voice low and do not walk in front of people who are praying. Take photos quietly and with respect, as our tips on taking photos respectfully explain. The daily prayers here follow Madinah’s prayer times.
Frequently asked questions about Masjid Qiblatain
Why is it called Masjid al-Qiblatain?
Qiblatain means “two qiblas”, and the mosque is linked with the change of the qiblah from Bayt al-Maqdis in Jerusalem to the Kaaba. A report recorded by Ibn Sa’d says the Prophet ﷺ turned towards the Kaaba during Dhuhr in the mosque of Banu Salamah. Saudipedia says the name dates from the Prophet’s time.
When did the qibla change?
The hadith say it was sixteen or seventeen months after the Prophet ﷺ came to Madinah (Sahih al-Bukhari 40). Saudipedia dates it to the middle of Sha’ban in the second year of the Hijrah.
How far is Masjid Qiblatain from Masjid an-Nabawi?
About 3.7 km west-north-west in a straight line, and about 5.6 km by road, on our measurement of OpenStreetMap data. Saudipedia gives “approximately four km” and the Saudi Press Agency 5 km. A taxi or a ziyarat tour is the easiest way to get there.
Is Masjid Qiblatain the same as Masjid Quba?
No: they are two mosques about 6.3 km apart, Quba in the south of Madinah and Qiblatain in the north-west. Quba is the first mosque built in Islam. The people of Quba also turned towards the Kaaba at Fajr (Sahih al-Bukhari 403), so both mosques appear in the story.
Is there a special reward for praying in Masjid al-Qiblatain?
No hadith gives one, and IslamQA describes the stories about this mosque as historical reports on which no action is based. When you enter, pray two rak’ahs before sitting, as in any mosque (Sahih al-Bukhari 444). Masjid Quba is different: a hadith links a prayer there with the reward of an Umrah.
What was Masjid Qiblatain’s old name?
The early biographers link it with the mosque of Banu Salamah, where the Prophet ﷺ visited Umm Bishr. Saudipedia says the clan of Banu Suwad bin Ghannam bin Ka’b built it, and that it has been called al-Qiblatayn since the Prophet’s time.
Has the qibla changed since then?
No. Since the revelation of Quran 2:144, Muslims everywhere have faced the Kaaba in Makkah in prayer. Verse 2:150 repeats the command: wherever you are, turn your faces towards al-Masjid al-Haram.
Final thoughts on visiting Masjid al-Qiblatain
Masjid Qiblatain is linked with the day Muslims turned to face the Kaaba. The Quran records the command in verse 2:144, and the hadith show the news reaching people in different prayers and mosques.
It is 3.7 km from Masjid an-Nabawi, an easy stop with the Seven Mosques and Uhud. Pray two rak’ahs when you enter, as in any mosque.
For other days in Madinah, read our guides to Jannat ul Baqi and Masjid Quba.
Planning Umrah from the UK? Our 4-star Umrah packages include nights in Madinah, and our Madinah ziyarat stops at Masjid al-Qiblatain. For a free, no-obligation quote, message us on WhatsApp or call +44 20 3287 2118.
Sources
- Quran 2:142, 2:143, 2:144 and 2:150, Saheeh International translation, Quran.com
- Sahih al-Bukhari 40, 399, 4486 and 7252: the ‘Asr prayer and the Ansar, Sunnah.com
- Sahih al-Bukhari 403 and Sahih Muslim 526a: the people of Quba at Fajr; Sahih Muslim 527: the man from Banu Salama, Sunnah.com
- Sahih Muslim 525a, 525b and Jami’ at-Tirmidhi 340 (sahih, Darussalam); Sahih al-Bukhari 444: praying on entering a mosque, Sunnah.com
- IslamQA answer 274076, 7 December 2023, quoting Ibn Sa’d, Ibn Hajar and Ibn Kathir
- Spahic Omer, The Spirituality of Hajj: Pilgrims’ Visit to Madinah, IslamiCity, 19 June 2024
- Saudipedia: Al-Qiblatayn Mosque (Saudi Ministry of Media)
- Saudi Press Agency: Madinah’s Qiblatain Mosque, 10 March 2025
- GOV.UK: Foreign travel advice: Saudi Arabia
- Distances: our measurement of OpenStreetMap data, 3 November 2026
Image credits: featured image: Photo: Diego Delso, CC BY-SA 4.0, via Wikimedia Commons. Cropped and resized.