Overview
Masjid Quba lies about 3 km south of Masjid an-Nabawi. It is widely regarded as the first mosque built in Islam, established by the Prophet ﷺ when he stayed at Quba on arrival from Makkah during the Hijrah.
Significance
Ibn Umar reported that the Prophet ﷺ used to visit Quba every Saturday, walking or riding, and pray two rak’ahs there (Sahih al-Bukhari 1193–1194). The Prophet ﷺ also said: “Whoever purifies himself in his house, then comes to the mosque of Quba and prays in it, will have a reward like that of Umrah” (Sunan Ibn Majah 1412).
Differing views
The Qur’an praises “a mosque founded on righteousness from the first day” (Qur’an 9:108). Many commentators apply this to Masjid Quba, while a hadith in Sahih Muslim applies it to the Prophet’s Mosque; scholars have explained that the description can fit both.
History
The mosque was rebuilt many times. The present white building with its minarets and domes was designed in the 1980s, and a major expansion was announced in the 2020s.
Map
Visiting information
Open for all five prayers. Many visitors walk from Masjid an-Nabawi along the Quba Walking Trail, or come by taxi or bus. Performing wudu before leaving your accommodation follows the hadith above.
Related Ziyarat locations
Rawdah
The area between the Prophet's ﷺ house and his minbar, described by him as a garden from the gardens of Paradise.
Read history & details →Bir Aris
The 'Well of the Ring' near Masjid Quba, where the Prophet's ﷺ seal ring fell during the caliphate of Uthman.
Read history & details →Bir Ghars
A historic well near Quba, one of the wells of Madinah associated in historical reports with the Prophet ﷺ.
Read history & details →Bir Rumah
The well purchased by Uthman ibn Affan and given freely for the use of all Muslims — an early example of waqf.
Read history & details →Masjid Ijabah
The mosque of Banu Mu'awiyah, where the Prophet ﷺ made a long supplication — two of his three requests were granted.
Read history & details →Badr
The site south-west of Madinah where the Battle of Badr (2 AH / 624 CE) — the first major battle of Islam…
Read history & details →Related Ziyarat tours & packages
Group Umrah
Organised Umrah for mosques, communities and families travelling together.
View details →Premium Umrah Package
Premium hotels near the Haram, private vehicles and personalised Ziyarat.
View details →Standard Umrah Package
Comfortable hotels closer to the Haram, private transfers and guided Ziyarat.
View details →Visit Masjid Quba with ZiyaraWay
Private and group Ziyarat tours with transport and guidance.
Book a Ziyarat tour Ask on WhatsAppSources & references
- Sahih al-Bukhari 1193 — https://sunnah.com/bukhari:1193
- Sahih al-Bukhari 1194 — https://sunnah.com/bukhari:1194
- Sunan Ibn Majah 1412 — https://sunnah.com/ibnmajah:1412
- Qur'an 9:108 — https://quran.com/9/108
Historical reports sometimes differ; where they do, this page notes it. Please consult qualified scholars for religious rulings. Visiting rules and opening times are set by the Saudi authorities and may change.








