Mosque
Masjid Quba
One of the earliest mosques in Islamic history, founded by the Prophet ﷺ at Quba before entering Madinah. Many scholars link Quran 9:108 to this mosque.

History
The Prophet ﷺ reached Quba on his migration from Makkah and stayed there for several days before entering Madinah. According to the sira literature he founded a mosque there, which is regarded as the first mosque built in Madinah. Many commentators understand Quran 9:108, "a mosque founded on piety from the first day", as referring to Quba.
Traditions report that the Prophet visited Quba regularly, on foot or on a mount. The mosque was later enlarged and rebuilt and is today a modern mosque.
Visiting tips
Quba is reached by a short trip from central Madinah, by taxi, shuttle or on foot. The mosque is generally open during the day and is busy at prayer times.
Many visitors pray two units of prayer there. The mosque is spacious and there are facilities for elderly and disabled visitors. In hot months it is better to visit in the morning or late afternoon.
Etiquette
Enter the mosque respectfully and quietly, and follow the order of the congregation. Praying two units of prayer at Quba is a common practice among visitors. A narration in Sunan Ibn Majah (1412) and Jami at-Tirmidhi (324) states that whoever purifies himself at home, comes to Quba and prays there receives the reward of an umrah. Scholars differ on the grading of this narration, so present it as a reported merit and not as a certainty.
Some visitors seek blessing by touching walls or objects; many scholars consider this without basis.
Timeline
1 AH / 622 CE (approx.)
Founding of the mosque at Quba
The Prophet ﷺ founded a mosque at Quba before entering Madinah.
Location
Sources
- Quran 9:108
- Sunan Ibn Majah 1412
- Jami at-Tirmidhi 324
- Ibn Hisham, al-Sira al-Nabawiyya
- al-Samhudi, Wafa al-Wafa bi-Akhbar Dar al-Mustafa