Medina · Saudi Arabia · Self-guided audio tour
Masjid al-Qiblatain: They Began This Prayer Facing Jerusalem
Find out how one prayer on this Medina hilltop turned from Jerusalem to Makkah and gave the mosque its name, why the Banu Salama clan wanted to leave, and how a mud-brick mosque was rebuilt for twelve centuries.
- Stops
- 4
- App languages
- 30+
- Offline
- Yes
- Updated
- November 2026
Stop 1 of 4 · free to read
An Oasis at War Invites a Peacemaker
A feuding oasis, a refugee community, and the invisible line every mosque obeys
Every mosque on earth is built around an invisible line. Wherever they are, Jakarta or Chicago, Muslims at prayer turn to face one point: the Kaaba, in Makkah. That direction is called the qibla. And it's not a polite gesture. Under normal circumstances, a prayer that ignores it doesn't count. Inside a mosque, a niche in the wall called the mihrab shows the way, and the imam stands in front of it. Keep that niche in mind.
Now, this city. Before it was Medina, it was Yathrib, an oasis of palm groves in the Arabian desert. Not a peaceful oasis. Jewish tribes held the area until around the fifth century. Then two Arab tribes, the Aws and the Khazraj, took control, and spent roughly a hundred and twenty years fighting each other. Four wars. Nobody really won, which is usually how that goes.
So the people of Yathrib tried something unusual. They met a preacher from Makkah in secret and invited him to come and lead them. They needed a mediator. He needed a place where his followers could worship without being persecuted. In 622, Muhammad arrived, and around seventy Muslims from Makkah followed him. That migration, the Hijra, turned a quarrelling farm town into the first Muslim community with its own leader.
Keep reading
Here's the detail that matters for where you're standing. In those first months in Medina, that young community did not pray toward Makkah. They faced Jerusalem. For well over a year, every prayer in this city pointed toward Jerusalem.
This mosque sits a few kilometres northwest of the Prophet's Mosque, out in what was then one clan's corner of the oasis. It was built in the second year after the migration. And it's one of the very few places where a change in that invisible line left its mark on the building itself. The name gives it away. Al-Qiblatain means "the two qiblas."
Medina today is a Saudi city of about one and a half million people, part of the kingdom since 1925. This mosque has been torn down and rebuilt in modern times, and since 2025 it's been ordered kept open around the clock. Yet the old story still shapes its walls.
Ahead: a neighbourhood, a meal, a turn, and a building that refuses to forget.

The route
4 stops, one story
Find out how one prayer on this Medina hilltop turned from Jerusalem to Makkah and gave the mosque its name, why the Banu Salama clan wanted to leave, and how a mud-brick mosque was rebuilt for twelve centuries.
- 1
An Oasis at War Invites a Peacemaker
Before it was Medina, Yathrib went through four wars between the Aws and the Khazraj. Then its feuding clans secretly invited a preacher from Makkah to come and keep the peace.
Read it above ↑ - 2
Banu Salama's hilltop
the neighbourhood and the meal
Banu Salama once tried to move beside the Prophet's Mosque and were told to stay put. Then Umm Bishr cooked him a meal, and the noon prayer that followed made history.
- 3
The moment of turning
Jerusalem to Makkah
Two units into the noon prayer, a command arrived and front became back. One man then carried the news to worshippers who turned while still bowing.
- 4
A building that remembers
two mihrabs, two domes
In 1987 the Egyptian architect Abdel-Wahed El-Wakil rebuilt this mosque from the ground up, yet kept the old direction toward Jerusalem in a small niche beneath a false dome.
Hear all 4 stops in the app
The app plays every stop, shows where you are on the map and answers your questions on the way. Free to start your first tour.
Keep exploring
More guides in Medina
FAQ
Questions about this guide
Where does the Masjid al-Qiblatain: They Began This Prayer Facing Jerusalem audio guide start?
At An Oasis at War Invites a Peacemaker, in Medina. From there the app takes you from stop to stop with GPS.
How many stops are there?
4 stops: An Oasis at War Invites a Peacemaker, Banu Salama's hilltop, The moment of turning and 1 more. The first one is free to read on this page.
Does it work offline?
Yes. Download the guide and its audio over Wi-Fi, then use it outdoors with GPS without spending mobile data.
Is it free?
The GuideSofia app is free to download, and it's free to start your first tour.
Which language is it in?
This page is in en-US. In the app, the guide is narrated in 30+ languages.
Can I ask the guide questions?
Yes. Open the chat in the app and ask about what you are looking at, local history, food or nearby places.
Take Masjid al-Qiblatain: They Began This Prayer Facing Jerusalem in your pocket
Download GuideSofia, open this guide and start walking. It's free to start your first tour.