8 Rabi al-Awwal, 1 AH (622 CE) major

Arrival at Quba and Building of Quba Mosque

الوصول إلى قباء

Quba, Medina

# The Arrival at Quba and the First Mosque in Islam

The First Stop Before Medina

The Prophet ﷺ entered the region of Yathrib not through the city itself but through Quba — a settlement approximately three miles south of the main city, inhabited primarily by members of the Banu Amr ibn Awf clan of the Aws tribe. He arrived at Quba on a Monday, the twelfth of Rabi al-Awwal, 1 AH — the date that most classical scholars associate with his entry into the Medinan region, though the precise day is subject to some variation in the sources. He had been traveling for approximately two weeks from the cave of Thawr, using the longer coastal route to avoid the Quraysh search parties.

The Prophet ﷺ stopped at Quba for approximately fourteen days — some accounts say four days, others up to three weeks; Ibn Hisham tends toward the longer duration. He stayed with Kulthum ibn Hidm, a respected elder of the Banu Amr ibn Awf, and the Muslim community of Quba and the surrounding area gathered around him. During this stay, the Prophet ﷺ laid the foundations of the first mosque in Islam.

Masjid Quba: The First Mosque

The Prophet ﷺ personally laid the first stone of Masjid Quba and was joined in the construction by his companions. The Quran references this mosque directly in Surah al-Tawbah (9:108): "A mosque founded on piety from the first day is worthier for you to stand in." Classical exegetes — including Ibn Kathir, al-Tabari, and others — have held that this verse refers to Masjid Quba, though some include Masjid al-Nabawi in its scope. The founding of a mosque as the first act of the Prophet ﷺ upon arriving in the Medinan region establishes the pattern that would repeat when he arrived in the city proper: the masjid comes first, before the political, social, and economic structures of the community.

The Prophet ﷺ said, in a hadith recorded in Ibn Majah and al-Tirmidhi: "Whoever purifies himself in his home and then comes to Masjid Quba and prays there, he will have the reward of an Umrah." This statement — connecting a prayer in this specific mosque with the reward of a voluntary pilgrimage — established Masjid Quba as one of the most significant mosques in Islam for all generations following the Prophet ﷺ. He himself visited it regularly during his Medinan years, coming every Saturday morning, sometimes on foot and sometimes mounted, and praying two rak'at there.

The Waiting and the People of Quba

While the Prophet ﷺ stayed at Quba, he was also waiting: Ali ibn Abi Talib had remained behind in Mecca to return property that had been left in trust with the Prophet ﷺ — a practice that illustrates the Prophet's ﷺ reputation for trustworthiness even among his enemies, who still left valuables with him despite everything. Ali arrived at Quba after making his own journey from Mecca, his feet reportedly bleeding from the long walk. He stayed with the Prophet ﷺ until the departure for the main city.

The people of Quba were among the first of the Ansar — the Helpers — to welcome and serve the Prophet ﷺ. Their willingness to host him, protect him, and work with him to build the first mosque established them as the original Ansar in the most literal geographical sense: the first community in the region of Medina to actively support the mission.

The Departure for Medina

When the Prophet ﷺ finally departed from Quba toward the main city, news spread ahead of him. The route through the city became a procession. People climbed to rooftops and walls to see him. The women and children of the Ansar sang: "Tala'a al-badru alayna" — "The full moon has risen over us, from the valley of Wida'. Thankfulness is our obligation upon us, so long as there is one who calls to Allah." This song, the most famous expression of the joy of the Medinan community at the Prophet's ﷺ arrival, has been sung in Muslim communities across the world and across centuries in commemoration of the Hijra.

The Prophet ﷺ rode on his camel al-Qaswa, and did not direct her path himself — he let her walk as she willed, understanding her movement as guided. Every clan the camel passed wanted the honor of hosting the Prophet ﷺ. They stood in the road, took hold of the camel's bridle, and offered their hospitality. The Prophet ﷺ responded gently to each: "Let her go — she is commanded." Al-Qaswa continued until she reached the area where the Banu Najjar lived, near the land of two orphan boys that had been used as a drying ground for dates. She stopped there, knelt, and rose again. She moved slightly and knelt a second time. The Prophet ﷺ descended and said: "This, if Allah wills, is the abode." This was the site of what would become Masjid al-Nabawi.

What Quba Represents

The stop at Quba — before the city, before the central mosque, before the constitution and the brotherhood and the battles — is a statement about what the Prophet ﷺ valued when he arrived at the threshold of the new phase of his mission. He did not rush to establish political authority. He did not immediately call for a gathering of the city's leadership. He stopped, built a mosque, prayed, gathered the community around him, and waited for Ali. The first act of the Medinan mission was an act of worship — the founding of a place of prayer — and from that act everything else followed.

The lesson embedded in the sequence at Quba is not incidental. The Islamic community is defined by its prayer — by its orientation toward Allah, its gathering in the masjid, its communal act of worship that precedes and undergirds every other activity. When the Prophet ﷺ arrived at the new home of the mission, he built the mosque first.

Sources: Sahih al-Bukhari (Kitab Manaqib al-Ansar, Kitab al-Salah); Ibn Majah; Ibn Hisham, al-Sira al-Nabawiyya; Ibn Kathir, al-Bidayah wan-Nihayah; Ibn Sa'd, al-Tabaqat al-Kubra; Surah al-Tawbah (9:108)

Sources

  • Sahih Muslim
  • Sunan al-Tirmidhi
  • Surah at-Tawbah (9:108)