Masjid Quba: First Mosque in Islam Guide
Updated 30 October 2026 5 min read
Masjid Quba is the first mosque built in Islam, and it is one of the first sites most pilgrims visit in Madinah. It stands about 3.5 to 4 km south of Masjid al-Nabawi, so it is easy to reach by taxi.
History of the mosque
The Prophet ﷺ stopped at Quba on his way to Madinah during the Hijrah, and the mosque was built there in the early days of the Muslim community. The Quran refers to a mosque founded on piety from the first day, and Masjid Quba is widely understood to be that mosque.
The reward of praying there
A well-known hadith, recorded in Sunan Ibn Majah, says that praying two rak'ahs at Masjid Quba carries the reward of an Umrah. Many pilgrims make this part of their Madinah visit for that reason.
Visiting in practice
The mosque is open for prayer, and visitors are welcome at prayer times and outside them. Dress modestly, keep your voice low inside, and follow the guidance of the staff.
- Getting there: a short taxi ride from the Prophet's Mosque, about 3.5 to 4 km.
- Pair the visit with Masjid al-Qiblatayn, which is in the same direction of the city.
- Go early or after prayer to avoid the busiest times.
- Keep water with you, and allow about an hour for the visit.