✦ info@zkshajj.com Phone: +92 91 2211408 Mon–Thu & Sat: 09:00–20:00
✦ Knowledge Center · 4 min read

Masjid Quba: The First Mosque in Islam

Masjid Quba is the first mosque in Islam — and two rak'ahs prayed there carry the reward of an Umrah.

The short answer: Masjid Quba, on the outskirts of Madinah, is the first mosque built in Islam, founded by the Prophet ﷺ himself when he arrived in Madinah. Whoever performs ablution at home and prays two rak'ahs there receives the reward of an Umrah — a gift so great that the Prophet ﷺ visited it every Saturday to do exactly that.

“Whoever purifies himself in his house, then comes to the mosque of Quba and prays in it, will have a reward like that of Umrah.”

— Jami' at-Tirmidhi 324

The Qur'an itself honours this mosque: “A mosque founded on righteousness from the first day is more worthy for you to stand in” (Qur'an 9:108). When the Prophet ﷺ reached Quba on his Hijrah from Makkah, he stayed there for several days before entering Madinah, and the mosque he founded with his own hands became the model for every mosque that followed.

The Sunnah of visiting Quba

The Prophet's practice is the whole guide to visiting Quba. He used to go there every Saturday, sometimes walking and sometimes riding, and pray two rak'ahs. The Sunnah is therefore simple: make wudu at your hotel — the hadith specifies purification at home — then go to the mosque and pray two rak'ahs. That is all. There is no special dua, no extra ritual and no particular number of rak'ahs beyond the two. The reward is attached to this simple act, and the simplicity is part of its beauty.

What you will find today

The mosque has been rebuilt and expanded many times over the centuries, most recently into a large, beautiful building that can hold many thousands of worshippers, with white domes and minarets and a wide courtyard. It sits a short drive from the Prophet's Mosque, and every Madinah ziyarat tour stops there. Inside, the atmosphere is calm and spacious — very different from the crowds of the Prophet's Mosque — and it is a good place to sit quietly after your prayer. There is also a small well and the remains of the older mosque nearby, which your guide can point out.

How to plan your visit

  • Make wudu at your hotel before you leave — the reward in the hadith is tied to purifying yourself at home.
  • Go early in the morning, when the mosque is quiet and the heat is low; Saturday is the Sunnah day, but any day is fine.
  • Pray two rak'ahs on arrival, then make dua for yourself and your family.
  • Allow at least an hour for the round trip from the Prophet's Mosque area, including travel.
  • Combine Quba with the rest of your Madinah ziyarat tour — Uhud, Qiblatain and the Trench are usually visited on the same morning.
  • Check the mosque's current visiting arrangements before you go; timings change with the season.
The key detail: Make wudu at your hotel before setting out. The hadith promises the reward of Umrah to the one who purifies himself at home and then prays two rak'ahs in Quba.

Why Quba matters

Quba matters because it is the beginning. Before the Prophet's Mosque, before the great conquests and the caliphates, there was a small mosque of mud bricks on the edge of an oasis, built by a man who had just fled his home for his faith. Every mosque in the world descends from it. To pray two rak'ahs there is to touch the very start of the story — and to receive, for a few minutes of prayer, the reward of an entire Umrah. Few bargains in worship are as generous as this one, and it is open to every pilgrim who makes the short journey.

Frequently asked questions

What is the reward of praying in Masjid Quba?

Whoever performs ablution at home and prays two rak'ahs in Masjid Quba receives the reward of an Umrah (Jami' at-Tirmidhi 324).

How do I visit Masjid Quba?

Make wudu at your hotel, then travel to the mosque — a short drive from the Prophet's Mosque — and pray two rak'ahs. Most Madinah ziyarat tours include it.

Did the Prophet ﷺ visit Quba regularly?

Yes. He used to visit Masjid Quba every Saturday, sometimes walking and sometimes riding, and pray two rak'ahs there.

Is Masjid Quba the first mosque in Islam?

Yes — it was founded by the Prophet ﷺ on his arrival in Madinah, and the Qur'an describes it as a mosque 'founded on righteousness from the first day' (Qur'an 9:108).

Can women visit Masjid Quba?

Yes. Women are welcome and have their own prayer areas in the mosque, as in other mosques.

Related reading

← Back to the Knowledge Center · All guides on one page →

Questions about any rite? Ask an advisor — or open the Islamic Tools for duas and prayer times. Where rulings differ by school of thought, we say so plainly; a scholar you trust should always be your last reference.

Come and meet us in person.

“We would rather you choose us in a quiet office than on a website.” — Zubair Khan Shinwari, Founder & Chairman

WhatsApp +92 333 9999172 Email info@zkshajj.com