English العربية اردو Bahasa Indonesia Bahasa Melayu हिन्दी Türkçe Français

Masjid Quba in Madinah: opening hours, reward and how to visit

Last updated: 1 December 2026

Masjid Quba sits on the southern edge of Madinah and is remembered as the first mosque built in Islam. It is reported to be open around the clock, which makes it one of the easiest ziyarat stops to fit into your stay.

At a glance

Why Quba matters

When the Prophet ﷺ reached Madinah after the Hijrah he stayed in Quba for a few days and built a mosque there, with the companions carrying the stones themselves. Many scholars of tafsir connect the verse about a mosque "founded on taqwa from the first day" (Quran 9:108) with Quba, while others connect it with the Prophet's Mosque. Both views are held, so this page says only what is agreed: Quba is the first mosque of Islam.

The reward people travel for

It is reported in Sahih al Bukhari (1193) that the Prophet ﷺ used to visit Quba every Saturday, riding or on foot. Sunan Ibn Majah (1412) records that praying in Masjid Quba carries the reward of an Umrah, and Darussalam grades it hasan, so confirm the exact wording with a scholar. The usual advice that follows is to purify yourself at your hotel and then pray two rakat in the mosque. Ask your scholar if you want the details of the narration explained.

How to visit well

  1. Go after Fajr or in the late afternoon. The courtyard is shaded and the queue to enter is shorter.
  2. Make wudu before you leave the hotel.
  3. Take a taxi or a hotel shuttle. Agree the return price or use a ride app so that you are not stranded afterwards.
  4. Women have their own prayer space. Follow the signs and the staff.
  5. Pray, make dua and leave room for the next group. The area is for worship, not for long photo sessions.

Nearby

The Quba area has shops and a pedestrian souq where many visitors buy dates and prayer items. We cover it in Madinah souvenirs. For the rest of the route see Madinah ziyarat places.

Frequently asked

Is Masjid Quba open 24 hours?

It is reported to be open day and night. Check the Nusuk app before you go, because entry arrangements can change during Ramadan and Hajj.

What time does Masjid Quba close?

No official closing time was found. The mosque is reported to stay open around the clock, so plan around prayer times and the heat instead.

What is the reward of praying in Masjid Quba?

Sunan Ibn Majah 1412 records that a prayer in Masjid Quba carries the reward of an Umrah, and Darussalam grades it hasan, so confirm the exact wording with a scholar. Purify yourself at home first, then pray two rakat.

How far is Masjid Quba from Masjid an Nabawi?

It is a short ride, usually about 10 to 15 minutes by taxi depending on traffic.

Is Masjid Quba the first mosque in Islam?

Yes. The Prophet built it when he arrived in Madinah after the Hijrah.

Sources and review

Reviewed by the Makkah Madina Guide editorial team on 1 December 2026.