The first mosque
In 622, travelling from Makkah to Yathrib, the Prophet and Abu Bakr stopped at Quba, a village of orchards a few kilometres south of the town, and stayed there for some days before entering the city. According to the historical sources, the Prophet laid the first stones of a mosque there, and his companions completed it. Many commentators on the Quran connect it with the verse describing a mosque founded on piety from the first day, though others apply that verse to the Prophet's Mosque.
After settling in Madinah, the Prophet continued to visit Quba. Reports in Bukhari and Muslim describe him going there every Saturday, on foot or riding, and praying two rak'ahs. The village has long since been absorbed into the city, but the mosque has kept its place in the hearts of Madinah's people and visitors.
The reward of praying there
A hadith recorded by Ibn Majah and al-Nasa'i reports the Prophet saying that whoever purifies himself at home, then comes to Quba Mosque and prays in it, has a reward like that of an Umrah. For this reason many pilgrims make wudu at their hotel before setting out, and visit on a Saturday morning to follow his example, although any day is fine. The prayer is two rak'ahs; there is no other special rite.
This reward is not a substitute for the Umrah itself, which is performed in Makkah. Scholars explain it as an encouragement to visit, in the same way that the hadith on Umrah in Ramadan speaks of a reward like that of Hajj.
The building and its expansion
The mosque was rebuilt and enlarged many times, by the early caliphs, the Umayyads, the Mamluks and the Ottomans. The present white building, with its domes and four minarets, was designed by the Egyptian architect Abdel-Wahed El-Wakil and built under King Fahd in the mid-1980s, when the old structure was replaced entirely.
In April 2022 the Saudi government announced the largest expansion in the mosque's history, named after King Salman. According to the announcement, it will enlarge the mosque and its surroundings to about 50,000 square metres, roughly ten times its previous size, with room for around 66,000 worshippers. Work has been carried out in stages, so expect building sites and changing entrances around the mosque during your visit.
Getting there
Quba lies a few kilometres south of the Prophet's Mosque, around 3 to 5 km depending on where you start and the route you take. A wide, paved pedestrian avenue along Quba Road links the two areas, and walking it in the cool of the early morning, ideally after fajr, takes about an hour at an easy pace. Take water, and avoid the walk in the summer midday heat.
Taxis and ride-hailing cars make the trip in ten to twenty minutes, depending on traffic. Many hotels and tour operators include Quba in a half-day ziyarah tour with Mount Uhud and the Qiblatayn Mosque; our places section covers other sites in and around the holy cities. There are separate entrances and prayer halls for women.
Like the Prophet's Mosque, Quba is a working mosque that fills for the Friday prayer and in Ramadan. Go outside prayer times if you want space, and keep the visit simple: wudu before you leave, two rak'ahs, and some time for dua. For the wider story of the city, read the history of Madinah.
Sources
- Saudi Gazette: Crown Prince launches largest project to expand Quba Mosque (2022)
- Wikipedia: Quba Mosque
- Visit Saudi (official tourism site)
Page updated 2026-11-21