Masjid Quba Hadith: Reward, 2 Rak’ahs and What to Recite
Contents
Many visitors to Madinah search for one thing before they go to Quba: what exactly should I do there? The authentic Masjid Quba hadith answer it simply. Purify yourself at home, go to the mosque, and pray, and the reward is like that of an Umrah.
At a glance
- Hadith: 7, plus Quran 9:108
- Collections: Bukhari, Muslim, Abu Dawud, Tirmidhi, Ibn Majah
- Grade: Sahih and Hasan
- Topic: Salah, Masjid Quba’
- One thing to do: Make wudu at home before you set out for Quba’
Masjid Quba’ stands on the southern edge of Madinah, around 3.5 kilometers from Masjid Nabawi. It was the first mosque the Prophet ﷺ built after the Hijrah, when he stopped at Quba’ before entering Madinah. Here is what the authentic hadith say about praying there.
1. The Masjid Quba hadith: a reward like an Umrah
Sahl bin Hunaif (may Allah be pleased with him) narrated that the Prophet ﷺ said:
مَنْ تَطَهَّرَ فِي بَيْتِهِ، ثُمَّ أَتَى مَسْجِدَ قُبَاءٍ، فَصَلَّى فِيهِ صَلاَةً، كَانَ لَهُ كَأَجْرِ عُمْرَةٍ
“Whoever purifies himself in his house, then comes to the Quba’ Mosque and offers one prayer therein, will have a reward like that for ‘Umrah.”
Sunan Ibn Majah 1412 · Hasan (Darussalam) · Narrated by Sahl bin Hunaif · Translation from Sunnah.com
The hadith links the reward to two steps: purifying yourself at home first, then coming to Quba’ to pray. Usaid bin Zuhair al-Ansari (may Allah be pleased with him) reported the same reward in a shorter wording:
الصَّلاَةُ فِي مَسْجِدِ قُبَاءٍ كَعُمْرَةٍ
“Prayer in Masjid Quba is like an Umrah.”
Jami` at-Tirmidhi 324 · Hasan (Darussalam) · Narrated by Usaid bin Zuhair al-Ansari · Translation adapted from Sunnah.com
A third narration in Sunan an-Nasa’i 699 (Hasan, Darussalam) says the same: whoever goes out to Masjid Quba’ and prays there has a reward equal to an Umrah.
Try this: make wudu at your hotel or home before you leave, so your visit starts the way the hadith describes.
2. He prayed two rak’ahs there
Abdullah ibn Umar (may Allah be pleased with him) described what the Prophet ﷺ did once he arrived:
كَانَ رَسُولُ اللَّهِ صلى الله عليه وسلم يَأْتِي مَسْجِدَ قُبَاءٍ رَاكِبًا وَمَاشِيًا فَيُصَلِّي فِيهِ رَكْعَتَيْنِ
“Allah’s Messenger ﷺ used to come to the mosque at Quba’ riding and on foot, and he would pray two rak’ahs in it.”
Sahih Muslim 1399b · Narrated by Ibn Umar · Translation adapted from Sunnah.com
This is the authentic basis for the two rak’ahs many people ask about. The same addition appears in Sahih al-Bukhari 1194. The hadith give no special wording for the intention or the recitation in these two rak’ahs.
Try this: when you enter Masjid Quba’, pray two rak’ahs before you sit down or take photos.
3. Every Saturday, walking or riding
Ibn Umar also described how regular these visits were:
كَانَ النَّبِيُّ صلى الله عليه وسلم يَأْتِي مَسْجِدَ قُبَاءٍ كُلَّ سَبْتٍ مَاشِيًا وَرَاكِبًا
“The Prophet ﷺ used to go to the Mosque of Quba every Saturday, (sometimes) walking and (sometimes) riding.”
Sahih al-Bukhari 1193 · Narrated by Ibn Umar · Translation adapted from Sunnah.com
Ibn Umar kept this habit himself. In Sahih al-Bukhari 1191, Nafi’ reports that when Ibn Umar entered Masjid Quba’ he disliked leaving it without praying. HadeethEnc explains that “every Saturday” means the Prophet ﷺ set aside particular days for the visit.
Try this: if you are in Madinah over a Saturday, plan your Quba’ visit for that day, walking part of the way if you can.
4. A mosque founded on taqwa
Allah describes a mosque “founded on righteousness from the first day” in Surah at-Tawbah, in contrast to the mosque the hypocrites built to cause harm (9:107):
لَا تَقُمْ فِيهِ أَبَدًا ۚ لَّمَسْجِدٌ أُسِّسَ عَلَى ٱلتَّقْوَىٰ مِنْ أَوَّلِ يَوْمٍ أَحَقُّ أَن تَقُومَ فِيهِ ۚ فِيهِ رِجَالٌ يُحِبُّونَ أَن يَتَطَهَّرُوا۟ ۚ وَٱللَّهُ يُحِبُّ ٱلْمُطَّهِّرِينَ
Do not stand [for prayer] within it – ever. A mosque founded on righteousness from the first day is more worthy for you to stand in. Within it are men who love to purify themselves; and Allāh loves those who purify themselves.
Surah at-Tawbah 9:108 · Translation: Saheeh International, from Quran.com
Tafsir Ibn Kathir explains the verse as referring to Masjid Quba’. Abu Hurairah (may Allah be pleased with him) narrated that the second half of the verse was revealed about the people of Quba’:
نَزَلَتْ هَذِهِ الآيَةُ فِي أَهْلِ قُبَاءَ { فِيهِ رِجَالٌ يُحِبُّونَ أَنْ يَتَطَهَّرُوا } قَالَ كَانُوا يَسْتَنْجُونَ بِالْمَاءِ فَنَزَلَتْ فِيهِمْ هَذِهِ الآيَةُ
“The following verse was revealed in connection with the people of Quba’: ‘In it are men who love to be purified’ (9:108).” He said: “They used to cleanse themselves with water after relieving themselves, so the verse was revealed about them.”
Sunan Abi Dawud 44 · Sahih (al-Albani) · Narrated by Abu Hurairah · Translation adapted from Sunnah.com
Try this: treat purity as part of the visit, not a formality: a careful wudu is how the people of Quba’ earned this praise.
5. Which mosque did he mean?
When Abu Sa’id al-Khudri (may Allah be pleased with him) asked the Prophet ﷺ which of the two mosques was founded on taqwa, he pointed to his own mosque in Madinah:
دَخَلْتُ عَلَى رَسُولِ اللَّهِ صلى الله عليه وسلم فِي بَيْتِ بَعْضِ نِسَائِهِ فَقُلْتُ يَا رَسُولَ اللَّهِ أَىُّ الْمَسْجِدَيْنِ الَّذِي أُسِّسَ عَلَى التَّقْوَى قَالَ فَأَخَذَ كَفًّا مِنْ حَصْبَاءَ فَضَرَبَ بِهِ الأَرْضَ ثُمَّ قَالَ هُوَ مَسْجِدُكُمْ هَذَا
“I went to Allah’s Messenger ﷺ as he was in the house of one of his wives, and said: Messenger of Allah, which of the two mosques is founded on piety? Thereupon he took a handful of pebbles and threw them on the ground and then said: ‘This is the very mosque of yours.’”
Sahih Muslim 1398 · Narrated by Abu Sa’id al-Khudri · Translation adapted from Sunnah.com
So both mosques are described as founded on taqwa: Quba’ through the verse and its context, and Masjid Nabawi through this hadith. You can read more about the second in Reward of Praying in Masjid Nabawi.
Try this: visit both mosques on your trip, and pray in each with the same care.
Masjid Quba dua: what to recite when you enter
No dua specific to Masjid Quba’ is narrated in these hadith. What the Prophet ﷺ taught is the dua for entering any mosque, narrated by Abu Usaid (may Allah be pleased with him):
اللَّهُمَّ افْتَحْ لِي أَبْوَابَ رَحْمَتِكَ
Allahumma-ftah li abwaba rahmatik
“O Allah, open for me the doors of Your mercy.”
Sahih Muslim 713a · Narrated by Abu Usaid · Translation adapted from Sunnah.com
In the same hadith, he taught that when leaving the mosque you say: “O Allah, I ask You of Your bounty.” Beyond that, you can make any dua you wish in your own words during your prayer there.
Bringing it together
Reflection: the reward of an Umrah here comes from something small and repeatable. Wudu at home, a short walk or ride, two rak’ahs. The Prophet ﷺ did not visit Quba’ once in his life; he made it part of his week. That is a reminder that great reward often sits inside simple habits kept with sincerity.
Questions people ask
Is there a special dua for Masjid Quba?
No dua specific to Masjid Quba’ is narrated in these hadith. The authentic dua for entering any mosque applies: “Allahumma-ftah li abwaba rahmatik”, “O Allah, open for me the doors of Your mercy” (Sahih Muslim 713a).
What is the niyyah for 2 rak’ahs in Masjid Quba?
The hadith say the Prophet ﷺ prayed two rak’ahs in Masjid Quba’ (Sahih Muslim 1399b), but they give no set wording for the intention. For questions about rulings, ask a qualified local scholar.
Is one prayer in Masjid Quba equal to an Umrah?
The Prophet ﷺ said whoever purifies himself at home, then comes to Masjid Quba’ and offers one prayer there, has a reward like that of an Umrah (Sunan Ibn Majah 1412, Hasan per Darussalam).
How often did the Prophet ﷺ visit Masjid Quba?
Ibn Umar said the Prophet ﷺ went to Masjid Quba’ every Saturday, sometimes walking and sometimes riding (Sahih al-Bukhari 1193).
How far is Masjid Quba from Masjid Nabawi?
Around 3.5 kilometers, which is roughly a 40 minute walk.
Key lessons

- One prayer in Masjid Quba’ carries a reward like an Umrah (Ibn Majah 1412).
- Purify yourself at home before you set out.
- The Prophet ﷺ prayed two rak’ahs there (Muslim 1399b).
- He visited it every Saturday, walking or riding (Bukhari 1193).
- No special dua is narrated for Quba’; use the dua for entering any mosque.
Part of our Salah series: see all our salah articles in one place.
If you are travelling to Madinah, I highly recommend visiting Masjid Quba’ after Masjid Nabawi. Take a moment there to reflect on its history and the Sirah behind this beautiful mosque.
May Allah grant you the reward of an Umrah for the prayer you offer there.
Save this to Pinterest so you can remember it on your next trip to Madinah

Share the reward. Send this article to someone who needs it today — teaching a hadith or dua can become a lasting good deed for you, in shaa Allah.






