
Masjid Quba, Madinah: History, Virtues & Visiting Guide
Masjid Quba is the first mosque ever built in Islam. The Prophet ﷺ laid its foundations with his own hands when he reached Madinah during the Hijrah, and Allah praised it in the Qur'an.
Quick facts
- Location
- About 3.5 km south of Masjid an-Nabawi
- Open
- 24 hours
- Time needed
- 45–60 minutes
- Best time
- Saturday morning, following the Sunnah
The first mosque in Islam
In 622 CE the Prophet ﷺ stopped at the village of Quba, just outside Madinah, before entering the city. During those days he founded this mosque, and the Muhajirun and Ansar helped him build it. Allah refers to it in the Qur'an: “A mosque founded on righteousness from the first day is more worthy for you to stand in” (At-Tawbah 9:108).
The present building, with its white domes and four slender minarets, was completed in the 1980s and has been expanded since, so it can welcome thousands of worshippers at once.
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” (Sunan Ibn Majah, graded authentic). He ﷺ also used to visit Quba every Saturday, sometimes walking and sometimes riding, and pray two rak'ahs there (Sahih al-Bukhari & Muslim).
So make wudu at your hotel before you set off. That small step is part of the Sunnah.
What to do at Quba
- Pray two rak'ahs of tahiyyat al-masjid.
- Visit early on a Saturday to follow the Prophet's ﷺ practice.
- Browse the date and souvenir shops around the mosque. Quba is famous for fresh Madinah dates.
Getting there
Quba is a short drive from the Prophet's Mosque. Some pilgrims also walk the pleasant pedestrian route that links the two mosques. Masjid Quba is the first stop on almost every Madinah Ziyarat tour. With Zakarasma it is included in the Madinah Ziyarat tour (250 SAR per vehicle), together with Qiblatain, Uhud and the Seven Mosques.
Photos of Masjid Quba
Frequently asked questions
Is praying in Masjid Quba equal to Umrah?
The Prophet ﷺ said that whoever makes wudu at home and then prays in Masjid Quba gets a reward like that of an Umrah (Sunan Ibn Majah). It earns the reward; it does not replace the obligatory Umrah.
Is Masjid Quba open at night?
Yes, the mosque is open 24 hours.
How long does a visit to Quba take?
Most visitors spend 45–60 minutes, including prayer and a walk around the area.
Visit Masjid Quba with Zakarasma
Private, air-conditioned transport with an experienced driver. Add this Ziyarat to your package and see your full day-by-day plan with prices.
Related Ziyarat guides

Masjid al-Qiblatain
Visit Masjid al-Qiblatain, where the Qibla changed from Jerusalem to the Kaaba. Its history, the Qur'anic vers…

The Seven Mosques (Sab'a Masajid)
The Seven Mosques of Madinah stand near the site of the Battle of the Trench (Khandaq). Discover their history…

Masjid an-Nabawi (The Prophet's Mosque)
A pilgrim's guide to Masjid an-Nabawi in Madinah: its history, the Green Dome, Riyadh ul-Jannah, etiquette for…