Islamic Heritage

Masjid Quba: The First Mosque in Islam

Founded on the day the Prophet ﷺ reached the outskirts of Madinah, Quba is mentioned in the Quran and remains one of the most loved visits for pilgrims.

The white domes and minarets of Masjid Quba in Madinah

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.

At-Tawbah 9:108

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

Masjid Quba with its white domes and tall minarets
The mosque has been rebuilt and expanded many times; the current building dates from the 1980s.

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.

Ziyarat-e-Haramain Editorial Team

Guides and stories prepared by the team behind the Ziyarat-e-Haramain app. For rulings specific to your situation, please consult a qualified scholar.

Carry it offline

Keep this guide in your pocket.

Hajj, Umrah and Ziarat guidance with duas in Arabic, Urdu and English — in the Ziyarat-e-Haramain app, fully offline.

Get it on Google Play Download on the App Store
Umrah guide screen of the app

Keep reading

All articles