Masjid Quba, about 3 km south of Masjid an-Nabawi, is the first mosque built in Islam, founded by the Prophet ﷺ when he arrived at Quba during the Hijrah. He said: “Whoever purifies himself in his house, then comes to Masjid Quba and prays in it, has the reward of an Umrah” (Ibn Majah). He used to visit it every Saturday and pray two rak'ahs (Bukhari, Muslim).
The first mosque
On the journey from Makkah, the Prophet ﷺ stopped at Quba, an area of palm groves just outside Madinah, and stayed for some days with the tribe of Banu Amr ibn Awf. During that stay he laid the foundations of a mosque and worked on it alongside his Companions. In the Qur'an, Allah praises “a mosque founded on righteousness from the first day” and its people, who “love to purify themselves” (At-Tawbah 9:108). Many scholars of tafsir say this refers to Quba.
Earning the reward
- Make wudu at your hotel: the hadith mentions purifying yourself at home before setting out.
- Go with the intention of praying: walk, take a taxi or the shuttle, intending to pray at Quba.
- Pray two rak'ahs: any voluntary prayer, or the obligatory prayer if it is time.
- Make du'a: thank Allah for the opportunity, then return.
The mosque today
The present white building with its domes and four minarets was completed in the 1980s. A major expansion announced in 2022 aims to enlarge the mosque and its grounds many times over. Women have a dedicated entrance and prayer hall.
Walking the Quba route
A pedestrian avenue of about 3 km links Masjid an-Nabawi and Masjid Quba, with shade, benches and cafés along the way. Walking it on a Saturday morning is a beautiful way to follow the Prophet's ﷺ habit.
The first Jumu'ah
When the Prophet ﷺ left Quba for the centre of Madinah after his stay with Banu Amr ibn Awf, the time of Jumu'ah came while he was among the clan of Banu Salim ibn Awf. He led the first Friday prayer of his time in Madinah there, in the valley of Ranuna'. A small mosque, Masjid al-Jumu'ah, stands at that place today on the road between Quba and Masjid an-Nabawi, and some Ziyarah routes stop to see it.
Tips for a calm visit
- Go early on a Saturday morning, after sunrise, when the road and the mosque are quieter.
- Carry your shoes in a bag. The shoe racks are large and easy to confuse.
- Women have a separate entrance and prayer hall, so agree on a meeting point outside before going in.
- Avoid peak tour-bus times late in the morning if you want a quiet two rak'ahs.
Frequently asked questions
Do I need to go on a Saturday?
No. The reward of an Umrah is for praying there on any day. Saturday follows the Prophet's ﷺ personal habit.
Does praying at Quba replace Umrah?
It brings a reward like that of an Umrah, but it is not the act of Umrah and does not replace an Umrah you intend or owe.
How do I get there?
Walk the 3 km avenue, take a taxi (about ten minutes), or go with your group on the Ziyarah day.



