When the Prophet ﷺ reached the village of Quba on the edge of Yathrib during the Hijrah, he stayed for several days. In that short time he laid the foundations of a mosque — the first built in Islam.
A mosque founded on taqwa
Many commentators connect Quba with the verse that praises a mosque founded on God-consciousness from the very first day:
لَّمَسْجِدٌ أُسِّسَ عَلَى التَّقْوَىٰ مِنْ أَوَّلِ يَوْمٍ أَحَقُّ أَن تَقُومَ فِيهِ ۚ
A mosque founded on righteousness from the first day is more worthy for you to stand in.
The reward of a visit
The Prophet ﷺ used to visit Quba every Saturday, riding or walking, and pray two rak’ahs there (Sahih al-Bukhari, Sahih Muslim). In a narration recorded by Ibn Majah, he said that whoever purifies himself at home and then comes to Masjid Quba and prays in it will have a reward like that of an Umrah.
The mosque today

The present mosque, with its white domes and four minarets, was designed by the Egyptian architect Abdel-Wahed El-Wakil and completed in the 1980s. A further major expansion has been under way in recent years.
Visiting
- Quba lies a few kilometres south of Masjid an-Nabawi — a short taxi ride, or a walk along the dedicated pedestrian route.
- Make wudu before leaving your hotel, following the narration above.
- Saturday mornings are busiest; mid-week mornings are calmer.





