Quba Mosque: Complete Guide to the First Mosque in Islam

Quba Mosque holds a unique place in Islamic history as the first mosque ever built, established by the Prophet Muhammad ﷺ shortly after his arrival in Madina. Just a short drive from Masjid an-Nabawi, it remains one of the most visited Ziyarat sites in the city. This guide covers its history, significance, architecture, and how to plan your visit.

Quba Mosque: Quick Answer

Quba Mosque, also known as Masjid Quba or Masjid-e-Quba, is widely regarded as the first mosque built in Islam, established by the Prophet Muhammad ﷺ shortly after arriving in Madina during the Hijrah. It sits a short distance outside central Madina, in the area historically known as Quba village.

Praying at Quba Mosque carries recognized reward according to hadith, and the mosque remains an active place of worship, having been expanded several times since its original construction.

The Hijrah Story: How Quba Mosque Became the First Mosque in Islam

When the Prophet Muhammad ﷺ arrived near Madina during the Hijrah, he first stopped at Quba, where he laid the foundation for what would become the first mosque built in Islamic history. This moment also marked the beginning of the bond between the Muhajirun, the migrants from Makkah, and the Ansar, the Madinan Muslims who welcomed and supported them.

This early period at Quba reflects one of the clearest examples of community-building in early Islamic history, as two distinct groups came together to support a shared faith.

Want the full Hijrah account and the story of the Muhajirun and Ansar? See our dedicated History of Quba Mosque & the Hijrah guide

Why Two Rak'ahs at Quba Mosque Carry Special Reward

According to hadith, praying two rak’ahs at Quba Mosque, particularly after performing wudu at home before setting out, carries a reward comparable to performing an Umrah. This has made Quba Mosque a popular destination for pilgrims specifically seeking to pray here during their stay in Madina.

For the full hadith reference and further detail on this virtue, see our dedicated Reward for Praying at Quba Mosque guide

Quba Mosque's Architecture

The mosque seen today is a modern structure, rebuilt in 1986 under King Fahd, featuring a distinctive white exterior with multiple domes and minarets. One notable architectural detail is a dome with an opening designed to let natural light filter into the mosque below.

Quba Mosque has since undergone further expansion as part of Vision 2030 development plans, aimed at significantly increasing its capacity to accommodate the growing number of worshippers and visitors each year.

Curious about the mosque’s design details and the ongoing expansion project? See our dedicated Quba Mosque Architecture & Expansion guide

Quba Mosque Name Variants

You may see Quba Mosque referred to by several different spellings and names, all referring to the same site: Masjid Quba, Masjid-e-Quba, Masjid al Quba, Quba Masjid, and Al Quba Masjid.

Planning Your Quba Mosque Visit

For current transport options and directions from your hotel, see our Getting to Quba Mosque guide.

Quba Mosque and Masjid an-Nabawi Together

Many pilgrims pair a visit to Quba Mosque with Masjid an-Nabawi as part of the same Madina Ziyarat day, since both are among the most significant and most visited sites in the city.

See our Quba Mosque & Masjid an-Nabawi: Planning Both in One Day guide for a suggested route and timing.

Important Things to Know Before Visiting

Religious & Historical Context

Religious significance

Quba Mosque’s status as the first mosque in Islam, along with the hadith describing the reward for praying there, gives it a well-documented religious basis distinct from many purely historical sites.

Historical significance

Its role in the earliest days of the Hijrah, and its connection to the union between the Muhajirun and Ansar, gives it a lasting place in the story of the early Muslim community.

Visitor information

This guide focuses on practical visiting details. For deeper scholarly explanation of the hadith or related religious questions, pilgrims should refer to a qualified source.

Explore More About Quba Mosque

Frequently Asked Questions

Quba Mosque is widely regarded as the first mosque built in Islam, established by the Prophet Muhammad ﷺ shortly after his arrival in Madina during the Hijrah.

It marks the beginning of mosque-building in Islamic history and carries hadith-based reward for prayer there, along with historical significance tied to the early Muslim community in Madina.

Estimates vary by source, generally described as a short drive of a few kilometers. See our Location & Directions guide for current, precise details.

According to hadith, praying two rak’ahs at Quba Mosque, especially after performing wudu at home beforehand, carries a reward comparable to performing an Umrah.

Yes, it is widely regarded as the first mosque built in Islamic history, established shortly after the Prophet’s ﷺ arrival in Madina.

The associated hadith specifically references performing wudu at home before setting out, which is why many pilgrims prepare this way before visiting.

Early mornings and weekdays tend to be calmer, while Fridays see significantly larger crowds around Jumu’ah prayer.

It’s commonly referred to as Masjid Quba, Masjid-e-Quba, Masjid al Quba, Quba Masjid, and Al Quba Masjid, all referring to the same site.

Explore More Holy Ziyarat Guides

Ready to Plan Your Visit to Quba Mosque?

Holy Ziyarat offers private, reliable transportation to Quba Mosque, easy to combine with Masjid an-Nabawi and other Madina Ziyarat sites in the same trip.

Holy Ziyarat

Your trusted companion for Ziyarat guidance and reliable transportation in Makkah & Madinah.

Contact Us

© 2026 Holy Ziyarat Ltd. All Rights Reserved.

Holy Ziyarat Ltd is registered in England and Wales, company number 17534607. Registered office: Office 2112, 85 Dunstall Hill, Wolverhampton, WV6 0SR, United Kingdom.