Medina · Saudi Arabia · Self-guided audio tour
Medina: Quba, Islam's First Mosque, Opened in 1986
Hear how a date-drying yard became Islam's first mosque, with a freed slave leading the prayer. Learn what happened to its rival, and how the Prophet's Saturday walk here has outlasted the old building, which was torn down in 1984.
- Stops
- 6
- App languages
- 30+
- Offline
- Yes
- Updated
- November 2026
Stop 1 of 6 · free to read
The Oasis That Sent for a Peacemaker
Palm groves, a 120-year feud, and a city that keeps rebuilding its oldest places
Start with the ground under your feet. This is an oasis. Volcanic rock to the east and west, and palm groves to the south, in a fertile valley in the Hejaz, about 340 kilometres north of Mecca. Water meant dates, and dates meant wealth. So people came, and they stayed, and they fought.
Before Islam, this place was called Yathrib. Jewish tribes dominated it first. They dug wells, built fortified courtyards, and held some of the best date land. Then two Arab tribes from South Arabia arrived, the Aws and the Khazraj. In time they took over. And then they spent about a hundred and twenty years fighting each other, with Jewish allies on both sides. Four wars. The last one settled nothing.
Exhausted, some of the people of Yathrib went looking for an outsider to mediate. They found one in Mecca: a prophet whose own city had turned against him. In 622 he came north. That journey is the Hijra, the migration, and Muslims count their calendar from it. Yathrib got a new name: the city of the Prophet. Madinat an-Nabi. Medina.
Keep reading
Quba was not Medina then. It was a separate village a few kilometres south, named after a well, on the edge of the palms. The city has since grown out and swallowed it.
Now the second thing you need to know. Medina has been ruled by caliphs, by the Ottomans for four centuries, briefly by the Hashemites, and since the 1920s by the Saudi state. Under that state, much of the old city was torn down. That includes tombs and buildings linked to the Prophet and his companions, removed because the authorities judged them contrary to Islamic principles. The holiest ground is kept, and also rebuilt, again and again, to hold ever larger crowds. The city counted nearly one and a half million people in 2022, before you add the pilgrims.
So keep two ideas in your head together. The oldest mosque of the Muslim era. And a building younger than many of the people praying in it. Ahead: hosts and debts, a rival mosque, a weekly walk, and a demolition. The mosque's story is as old as Islam. The walls are from 1986.

The route
6 stops, one story
Hear how a date-drying yard became Islam's first mosque, with a freed slave leading the prayer. Learn what happened to its rival, and how the Prophet's Saturday walk here has outlasted the old building, which was torn down in 1984.
- 1
The Oasis That Sent for a Peacemaker
Exhausted by four wars, Yathrib's people went looking for a mediator and found him in Mecca. His arrival in 622 gave the city a new name and Muslims their calendar.
Read it above ↑ - 2
A village at the edge of the oasis
the arrival and the hosts
His first Friday prayer in his new home didn't happen in Quba at all, but about a kilometre down the road in the valley of Ranuna, after the goodbyes.
- 3
The verse and the rival mosque
founded on piety
A tethered donkey and a woman named Layla's threshing floor became excuses for building a rival mosque nearby. An Ottoman inscription from 1829 answered them.
- 4
Laying the first stones
building the first mosque
Tradition says the Prophet's camel picked this spot by kneeling down, but memory splits sharply over who actually owned the land.
- 5
Every Saturday
the Prophet's walk to Quba and the habit of visiting
Caliph Umar is said to have dusted this mosque himself, and a saying attributed to the Prophet ties a prayer here to the reward of an umrah.
- 6
Demolished and rebuilt
El-Wakil's mosque and the great expansion
Egyptian architect Abdel-Wahed El-Wakil answered the demolition with domes and arcades in a centuries-old style, plus a removable roof for Friday crowds.
Hear all 6 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 Medina: Quba, Islam's First Mosque, Opened in 1986 audio guide start?
At The Oasis That Sent for a Peacemaker, in Medina. From there the app takes you from stop to stop with GPS.
How many stops are there?
6 stops: The Oasis That Sent for a Peacemaker, A village at the edge of the oasis, The verse and the rival mosque and 3 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 Medina: Quba, Islam's First Mosque, Opened in 1986 in your pocket
Download GuideSofia, open this guide and start walking. It's free to start your first tour.