The first mosque built in Islam, where two rak'ahs carry the reward of an Umrah. Its history, the Sunnah of visiting on Saturdays, and how to plan your visit from Masjid an-Nabawi.
Of all the places pilgrims visit in Madinah, Masjid Quba holds a special place. It was the first mosque built in Islam, the Prophet ﷺ laid its stones with his own hands, and he promised a remarkable reward to anyone who prays there. Yet many visitors arrive, pray quickly and leave without knowing its story.
This guide explains the history of the mosque, the reward of praying in it, the Sunnah of visiting it, and practical tips to make your visit unhurried and meaningful.
The first mosque in Islam
When the Prophet ﷺ migrated from Makkah in the year 622, he did not go straight into the heart of Madinah. He first stopped at Quba, a village of palm groves on the southern edge of the oasis, where he stayed with the clan of Banu 'Amr ibn 'Awf for several days.
During that stay he founded a mosque, carrying stones himself alongside his Companions. It became the first mosque built in Islam, before even Masjid an-Nabawi. Many scholars connect it with the verse:
"A mosque founded on righteousness from the first day is more worthy for you to stand in. Within it are men who love to purify themselves, and Allah loves those who purify themselves." (at-Tawbah 9:108)
Scholars have discussed whether the verse refers to Quba or to Masjid an-Nabawi; both were founded on taqwa, and the people of Quba were praised for their purity.
The reward: like an Umrah
The most famous virtue of Masjid Quba comes from the words of the Prophet ﷺ:
"Whoever purifies himself in his house, then comes to the Mosque of Quba and prays in it, will have a reward like that of an Umrah." (Ibn Majah, an-Nasa'i)
Notice the details in this hadith:
- Purify yourself at home, or at your hotel, before setting out. Making wudu before you leave is part of the Sunnah.
- Come with the intention of visiting Quba.
- Pray in it, even two rak'ahs.
It is not a replacement for the Umrah of Makkah, but a reward Allah grants out of His generosity to those who follow the Sunnah.
The Sunnah of visiting on Saturdays
Ibn 'Umar (may Allah be pleased with him) reported that the Prophet ﷺ used to visit Quba every Saturday, walking or riding, and pray two rak'ahs there (Bukhari, Muslim). Ibn 'Umar himself continued the practice after the Prophet ﷺ passed away.
Visiting on a Saturday is therefore a beautiful way to follow his example, though a visit on any day still earns the reward of the hadith above. Saturday mornings can be busy for the same reason, so arrive early.
The mosque today
The building you see today is a large white mosque with four minarets and several domes, rebuilt in the twentieth century and expanded since. A major expansion has been planned to increase its capacity greatly, so you may see construction around the site.
Inside, the prayer hall is bright and calm, with separate entrances and sections for women. The courtyard and surrounding plaza are pleasant in the early morning and after Asr.
How to get there from Masjid an-Nabawi
Masjid Quba lies roughly three to four kilometres south of Masjid an-Nabawi.
- On foot. A long, wide pedestrian walkway links the two mosques, lined with palm trees and benches. In the cooler months, walking it after Fajr or in the evening is a lovely experience, as the Prophet ﷺ himself sometimes walked to Quba.
- By taxi or ride-hailing app. The drive takes around ten to fifteen minutes, depending on traffic.
- On a Ziyarat tour. Quba is the first stop on almost every Madinah Ziyarat, usually combined with Masjid al-Qiblatayn, the Seven Mosques and Mount Uhud. Our Madinah Ziyarat guide describes the full route.
Practical tips for your visit
- Make wudu at your hotel to follow the hadith exactly.
- Go early in the morning, after sunrise, or after Asr when it is cooler.
- Avoid arriving just before a congregational prayer if you want space to pray quietly; join the congregation if you do arrive then.
- Dress modestly and bring a bag for your shoes.
- Women should look for the signs to the women's entrance, which is separate from the main men's doors.
- Bring water, especially in summer, and do not attempt the walk at midday.
- Visit the date shops nearby if you would like to buy fresh dates; our Madinah dates guide explains the varieties.
What to do inside
There is no special ritual for Masjid Quba beyond prayer. Pray two rak'ahs, or more if you wish, outside the times when voluntary prayer is disliked. Then sit for a while: make dua, read Qur'an, and reflect on the Prophet ﷺ arriving here as a migrant, tired from the desert journey, and choosing first of all to build a house for Allah.
Avoid practices with no basis, such as wiping the walls for blessing or taking soil from the site. The blessing of Quba is in praying there with sincerity.
Reflections to bring with you
Masjid Quba carries lessons that are easy to miss in a busy itinerary:
- Begin with Allah. The Prophet ﷺ had just survived a dangerous journey and had no home in Madinah yet, but his first project was a mosque.
- Work with your own hands. He did not simply give orders; he carried stones alongside his Companions.
- Purity of heart and body. The people of Quba were praised for loving purification, which is why the hadith begins with wudu at home.
- Consistency. He returned week after week, a reminder that small, regular acts of worship are beloved to Allah.
Take one of these lessons home with you, and your visit to Quba continues long after the trip ends.
Combining Quba with other visits
A morning at Quba fits well with:
- Masjid al-Qiblatayn, where the direction of prayer changed from Jerusalem to Makkah.
- The Seven Mosques near the site of the Battle of the Trench.
- Mount Uhud and the cemetery of its martyrs.
If you prefer to walk in the footsteps of the Companions at a slower pace, our guide to the footsteps of the Sahaba in Madinah is a beautiful companion read.
Frequently asked questions
Is praying in Masjid Quba really equal to an Umrah? The hadith promises a reward like that of an Umrah for whoever purifies himself at home, then comes and prays there. It is a reward, not a replacement for the rites of Umrah in Makkah.
What is the best day to visit? Saturday follows the Sunnah of the Prophet ﷺ, but any day brings the reward.
How far is Quba from Masjid an-Nabawi? About three to four kilometres, a short taxi ride or a pleasant walk in cool weather.
Can women visit Masjid Quba? Yes. There are separate entrances and prayer areas for women.
Visit Quba with a driver who knows Madinah
Haramain Safa Travels arranges private Ziyarat tours in Madinah, starting with Masjid Quba and continuing at your pace to Qiblatayn, the Seven Mosques and Uhud. See our Ziyarat tours or book a ride with a fixed fare.