Masjid Quba, located in Medina, Saudi Arabia, is the first mosque in Islamic history and holds significant religious importance. Its foundation dates back to the year 622 CE when Prophet Muhammad (PBUH) and his followers migrated from Mecca to Medina, a journey known as the Hijrah. Upon arriving in the Quba area near Medina, the Prophet (PBUH) and his companions paused to rest and, together with local residents, began building a mosque. Masjid Quba was completed shortly after with stones, and its simple structure served as a place for prayer and gathering.
Masjid Quba’s importance is also highlighted in the Quran in Surah At-Tawbah, verse 108, which refers to a mosque founded on piety. Tradition holds that the Prophet (PBUH) frequently visited the mosque and prayed there. He encouraged others to do the same, as praying in Masjid Quba is said to be equivalent to performing an umrah (a minor pilgrimage).
The mosque has undergone many renovations and expansions over the centuries. The most extensive modifications took place under the rule of Caliph Umar ibn Al-Khattab and then again by the Ottoman Sultan Suleiman the Magnificent. In modern times, the Saudi government has renovated and expanded Masjid Quba to accommodate the growing number of worshippers