Visiting Madinah is not a rite of Hajj or Umrah (Ziyarah of the Prophet's (ﷺ) Mosque)
Ziyarat al-Madinah al-Munawwarah wa al-Masjid al-Nabawi (laysat min manasik al-Hajj)
Overview
Visiting Madinah and the Mosque of the Prophet (ﷺ) is a beloved, recommended act of worship in its own right — but it is not a rite of Hajj or 'Umrah. This note clarifies that the pilgrimage is complete without it.
Qur'an
There is no ayah that commands, or that specifically addresses, visiting the Prophet's (ﷺ) Mosque or grave as a rite — its virtue rests on the Sunnah, and the point that Madinah is outside Hajj rests on the absence of any command plus scholarly consensus. The nearest Qur'anic praise of a Madinan mosque is Surah At-Tawbah:'لَّمَسْجِدٌ أُسِّسَ عَلَى ٱلتَّقْوَىٰ مِنْ أَوَّلِ يَوْمٍ أَحَقُّ أَن تَقُومَ فِيهِ ۚ فِيهِ رِجَالٌۭ يُحِبُّونَ أَن يَتَطَهَّرُوا۟'— 'Certainly, a mosque founded on righteousness (taqwa) from the first day is more worthy of your standing (in prayer) in it; in it are men who love to purify themselves.' The mufassirun differ on whether the mosque intended is Masjid Quba' or the Prophet's (ﷺ) Mosque (both in Madinah); either way this is praise of a Madinan mosque, not a Hajj obligation.
Reference · Qur'an 9:108
Hadith
- •narrator Abu Hurayrah (RA) —'صَلاَةٌ فِي مَسْجِدِي هَذَا خَيْرٌ مِنْ أَلْفِ صَلاَةٍ فِيمَا سِوَاهُ إِلاَّ الْمَسْجِدَ الْحَرَامَ'('One prayer in this mosque of mine is better than a thousand prayers elsewhere, except al-Masjid al-Haram').References · Sahih al-Bukhari 1190 · Sahih Muslim 1394Grade · Sahih — muttafaq 'alayh (a virtue-of-Madinah hadith)
- •narrator Abu Hurayrah (RA) —'لاَ تُشَدُّ الرِّحَالُ إِلاَّ إِلَى ثَلاَثَةِ مَسَاجِدَ'('Do not set out on a journey except to three mosques: al-Masjid al-Haram, this mosque of mine [the Prophet's (ﷺ) Mosque], and Masjid al-Aqsa') — the basis for a journey to Madinah being to visit the Mosque.References · Sahih al-Bukhari 1189 · Sahih Muslim 1397Grade · Sahih — muttafaq 'alayh (a virtue-of-Madinah hadith)
- •narrator 'Abdullah ibn Zayd al-Mazini (RA) (the fuller Abu Hurayrah (RA) wording) —'مَا بَيْنَ بَيْتِي وَمِنْبَرِي رَوْضَةٌ مِنْ رِيَاضِ الْجَنَّةِ'('Between my house and my pulpit is a garden from the gardens of Paradise' — the Rawdah). Contrast (weak, cited only to caution pilgrims): 'Whoever visits my grave, my intercession will be guaranteed for him' (al-Daraqutni and others) — used by some to encourage the grave-visit but graded weak/false by the hadith critics; visiting the grave is at most a permissible/recommended courtesy once one is already in Madinah, never a rite of Hajj.References · Sahih al-Bukhari 1195 · Sahih Muslim 1391 · Sahih al-Bukhari 1196Grade · Sahih al-Bukhari 1195: Sahih — muttafaq 'alayh (a virtue-of-Madinah hadith), Sahih Muslim 1391: Sahih — muttafaq 'alayh (a virtue-of-Madinah hadith), Sahih al-Bukhari 1196: Sahih — muttafaq 'alayh (a virtue-of-Madinah hadith). Separately, the 'whoever visits my grave' hadith is contested and predominantly graded weak (even baatil) — not relied upon to establish any obligation.
For Umrah
Equally true of 'Umrah, and even more commonly confused: visiting the Prophet's (ﷺ) Mosque in Madinah is a separate, highly recommended visit and is not a rite of 'Umrah. Nearly every commercial 'Umrah package bundles the two, which is why many pilgrims believe the 'Umrah is incomplete without it. It is not — the 'Umrah is complete at the halq or taqsir in Makkah.
Applies to
Not applicable as a Hajj act — it is not part of tamattu', qiran, or ifrad, and no Hajj type requires, adds, or omits it. It applies equally to every pilgrim (and to non-pilgrims) as an independent recommended visit; there is no count or per-type difference because it is outside the Hajj altogether.
If missed
No penalty whatsoever, and no sin. Skipping the Madinah visit carries zero consequence for the Hajj: it invalidates nothing, requires no dam and no fidyah, and incurs no sin — precisely because it was never part of Hajj to begin with. A pilgrim who completes all the manasik and travels straight home without ever visiting Madinah has a complete and fully rewarded Hajj. (Hanafi Dar al-Ifta, Birmingham: performing the pilgrimage without visiting Madinah 'would not render it invalid and will be considered complete,' and the person is not sinful.)
Timing & place
None — it is not time-bound. The Madinah visit has no valid start/end window and is completely detached from the Hajj timetable. It may be performed before Hajj, after Hajj, during Umrah, or at any time of year with no connection to the days of Dhul-Hijjah. Pilgrims typically fold it in before or after the pilgrimage purely for travel convenience, not because any timing is required.
Madinah al-Munawwarah — principally al-Masjid al-Nabawi (the Prophet's (ﷺ) Mosque), including the Rawdah and the giving of salam at the Prophet's (ﷺ) grave (alongside Abu Bakr (RA) and 'Umar (RA)). This is a wholly separate city and location from every Hajj site: it is roughly 400+ km from Makkah, outside the Haram of Makkah, and unrelated to Arafah, Muzdalifah, Mina, Masjid al-Haram, or Safa–Marwah where the actual rites occur.
Common mistakes
- •Believing the Hajj is incomplete, deficient, or invalid without visiting Madinah
- •Treating the Madinah trip as a numbered step of the manasik in Hajj guides
- •Entering ihram or reciting talbiyah for the Madinah visit (there is none)
- •Thinking one must visit or touch the grave for the Hajj to be accepted
- •Traveling with the primary intention of visiting the grave rather than the Mosque (the correct intention is the Prophet's (ﷺ) Mosque, with the grave-salam following once there)
- •And, at the grave, wiping/kissing the grille, raising the voice, circumambulating it, or directing du'a and requests to the Prophet (ﷺ) — all impermissible and none of them any part of Hajj
Across the madhabs
No divergence between the four schools is recorded for this act in this reference.
Notes
All four madhabs (Hanafi, Maliki, Shafi'i, Hanbali) agree that visiting Madinah / the Prophet's (ﷺ) Mosque is outside the rites of Hajj; there is no disputed classification to tabulate. The schools' recommendation to visit is unanimous in substance; where they differ it is only in emphasis and in the fine adab of the grave-visit, not in whether it is a Hajj rite (it is not). This entry exists to correct a widespread practical conflation: because operators sell 'Hajj + Madinah' as one package and many guidebooks list Madinah among the pilgrimage stops, pilgrims assume it is a mandatory station. It is not; it is a cherished, highly recommended, but entirely optional visit. Note also that the popular 'forty prayers in the Prophet's (ﷺ) Mosque' report (Musnad Ahmad) sometimes quoted to press the visit is itself weak/contested and should not be used to imply obligation.
'لَّمَسْجِدٌ أُسِّسَ عَلَى ٱلتَّقْوَىٰ مِنْ أَوَّلِ يَوْمٍ أَحَقُّ أَن تَقُومَ فِيهِ ۚ فِيهِ رِجَالٌۭ يُحِبُّونَ أَن يَتَطَهَّرُوا۟'