Masjid Quba: The First Mosque in Islam
Ziyarat

Masjid Quba: The First Mosque in Islam

Masjid Quba is the first mosque built in Islam, and praying there carries a reward like an Umrah. Learn its history, the Sunnah of visiting and how to get there from Masjid an-Nabawi.

Updated 28 November 2026Reviewed by the UmraHajj travel team

Masjid Quba, on the southern side of Madinah, is the first mosque built in Islam. The Prophet ﷺ laid its foundations when he arrived from Makkah on the Hijrah, and he continued to visit it regularly for the rest of his life.

Unlike most historical sites, this one has a clear virtue in the Sunnah. A visit here is one of the most rewarding things you can do in Madinah after praying in Masjid an-Nabawi.

Masjid Quba in Madinah with its white domes and minarets
The present building, with its white domes, dates from a major rebuilding in the 1980s.

The history and virtue of Masjid Quba

When the Prophet ﷺ reached Madinah on the Hijrah, he first stopped at Quba, among the clan of Banu ‘Amr ibn ‘Awf, and stayed there for some days before moving into the city (al-Bukhari). During that stay he founded the mosque, working on it with his Companions.

Allah praises “a mosque founded on piety from the first day” (Qur’an 9:108). Scholars discuss whether this refers to Quba or to the Prophet’s ﷺ own mosque; a hadith in Muslim names the latter, and many scholars say the description fits both.

The reward of an Umrah

The Prophet ﷺ said, “Whoever purifies himself in his house, then comes to Masjid Quba and prays in it, will have a reward like that of an Umrah” (Ibn Majah and an-Nasa’i, from Sahl ibn Hunayf). At-Tirmidhi reports, “Prayer in Masjid Quba is like an Umrah.” Ibn ‘Umar also reported that the Prophet ﷺ used to come to Quba every Saturday, walking or riding, and pray two rak‘ahs there (al-Bukhari and Muslim).

What you will see at Masjid Quba

The mosque is bright and spacious, with white domes, tall minarets, shaded courtyards and gardens. A large expansion project has been under way to increase its capacity many times over, so you may see construction around the edges. Separate entrances and prayer halls serve women.

How to visit Masjid Quba

The mosque is about 3.5 km south of Masjid an-Nabawi. A pedestrian avenue links the two, and the walk takes 40 to 50 minutes at an easy pace. Taxis and ride-hailing cars take around 10 minutes, and city buses serve the route.

The best time is early morning, after Fajr or during the forenoon, when the air is cooler and the mosque calmer. Saturday mornings follow the Sunnah but are busier. Thirty to forty-five minutes is enough.

Masjid Quba etiquette: following the Sunnah

Practical tips

Wudu at the hotel

This is part of the Sunnah described in the hadith.

Walk the avenue

The shaded pedestrian route is pleasant in the cooler hours.

Pair with Jumu‘ah mosque

Masjid al-Jumu‘ah is only a short drive to the north.

Masjid Quba quick facts

CityMadinah
DistanceAbout 3.5 km south of Masjid an-Nabawi
Time needed30–45 minutes
Best timeEarly morning, ideally on a Saturday
DifficultyEasy
Open to visitorsYes, open for all prayers
Location

Masjid Quba

About 3.5 km south of Masjid an-Nabawi

Open in Google MapsNearby ziyarat
MadinahAdd Madinah to your UmrahNights near Masjid an-Nabawi, Rawdah permits and ziyarat — we include it in your proposal.Madinah city guide →

Our Madinah ziyarat guide covers Masjid an-Nabawi and the Rawdah, and the ziyarat route planner helps you link Quba with nearby sites. See all sites on the ziyarat hub.

Masjid Quba: frequently asked questions

Does praying in Masjid Quba replace my Umrah?

No. The reward is like that of an Umrah, but it does not fulfil an obligatory Umrah.

Do I need to go on a Saturday?

Saturday follows the practice of the Prophet ﷺ, but the reward of the hadith applies on any day.

Can I walk from Masjid an-Nabawi?

Yes. A pedestrian avenue links the two mosques; allow 40 to 50 minutes.

Should I make wudu at the hotel?

Yes, if you can. The hadith mentions purifying oneself at home before coming.

Is there a women’s section?

Yes. Women have their own entrances and prayer halls.

Planning your days in Madinah? Our Madinah city guide has live prayer times, the weather, the local time and every ziyarah in the city on one page.

Add Madinah to your Umrah

We can plan your nights in Madinah with hotels close to Masjid an-Nabawi and an unhurried ziyarat.

Get my tailored quote →
Chat with us