Visiting etiquette · sourced
Madinah Guide — The Prophet’s Mosque and the Etiquette of Visiting
This guide explains the visit to Madinah step by step: entering the Prophet’s Mosque, the Rawdah, greeting the Prophet ﷺ, al-Baqi‘, Quba and Uhud. Every point rests on a Qur’anic verse, an authentic (sahih/hasan) hadith or a fiqh reference (TDV Encyclopedia of Islam, Diyanet), and its grade is shown. Visiting Madinah is not part of Hajj or Umrah, but it is a highly virtuous deed. Where the schools differ, the Hanafi view is given with brief notes on others. This app does not issue fatwas; for detailed cases consult a trusted scholar.
- Qur'an and sahih hadith
- Differences of madhhab noted
- Linked sources
This guide is prepared with its sources and is under scholarly review. The app does not issue fatwas; ask a scholar about anything you are unsure of.
1The virtue and sanctuary of Madinah5 questions
Does Madinah have a sanctuary (haram) like Makkah?
Sahih hadith
The Prophet ﷺ said: “Ibrahim declared Makkah sacred and prayed for its people, and I declare Madinah sacred as Ibrahim declared Makkah sacred.” The sanctuary is the area between Madinah’s two lava fields (labah) to the east and west; for the schools that accept it, it extends from Mount ‘Ayr in the south to the small Mount Thawr in the north (Uhud lies inside it).
Differences of opinion: For the Shafi‘is, Malikis and Hanbalis Madinah has a sanctuary with boundaries and special rulings. In the Hanafi school it has no sanctuary with special rulings; al-Tahawi read these hadiths as protecting the city’s natural beauty.
What should one observe in the sanctuary of Madinah?
Sahih hadith
The Prophet ﷺ forbade cutting Madinah’s trees and killing its game, and sternly warned anyone who brings evil or innovation into it. For the schools that accept the sanctuary, cutting trees and hunting are forbidden; most scholars hold there is no expiation for it. Feeding its grass to animals out of need is permitted.
Differences of opinion: According to al-Shafi‘i’s early view and one report from Ahmad, a penalty applies. For the Hanafis, the prohibitions of the Makkan sanctuary do not apply in Madinah.
How did the Prophet ﷺ pray for Madinah?
Sahih hadith
The Prophet ﷺ prayed: “O Allah, bestow on Madinah twice the blessing You bestowed on Makkah.”
What has been reported about Madinah’s protection?
Sahih hadith
The Prophet ﷺ said: “There are angels at the entrances of Madinah; neither plague nor the Dajjal will enter it.” He also said that faith retreats to Madinah as a snake retreats to its hole.
What is the reward for patience with Madinah’s hardships?
Sahih hadith
The Prophet ﷺ said: “Madinah is better for them, if only they knew… No one endures its hardship and difficulty but I will be an intercessor or a witness for him on the Day of Resurrection.” The hadith concerns those who stay and live in Madinah; visitors too should bear the crowds, heat and fatigue with patience.
2The ruling on visiting Madinah4 questions
Is visiting Madinah part of Hajj or Umrah?
Fiqh
No. Visiting the Prophet’s ﷺ grave and praying in the Rawdah are not an obligation (fard), a wajib or a sunnah of Hajj or Umrah. Someone who must leave Madinah without doing them has no deficiency in their Hajj or Umrah. Still, during one’s days in Madinah this visit is a highly virtuous deed that strengthens love for the Prophet ﷺ.
What does the “three mosques” hadith say?
Sahih hadith
The Prophet ﷺ said: “Saddles are not fastened for a journey except to three mosques: al-Masjid al-Haram, the Mosque of the Messenger ﷺ and al-Masjid al-Aqsa.” Based on this hadith, scholars rank them in virtue: al-Masjid al-Haram, then the Prophet’s Mosque, then al-Aqsa. Whether the hadith also covers journeys to places other than these three mosques (graves, shrines, etc.) has been debated among scholars (see the next item).
What is the ruling on visiting the Prophet’s ﷺ grave?
Fiqh
According to most scholars it is sunnah; for the Hanafis it is a confirmed sunnah (mu’akkadah), and some scholars consider it wajib. The Hanafi jurist al-Mawsili counted it among “the most virtuous recommended acts.” The Prophet’s ﷺ command “visit the graves” is also among its bases.
Differences of opinion: This is a much-debated issue. According to the TDV Encyclopedia, Ibn Taymiyyah and his student Ibn al-Qayyim, citing the “three mosques” hadith, held that visiting (travelling to visit) the Prophet’s ﷺ grave and certain other graves is not correct; Ibn Taymiyyah nevertheless accepted visiting the Prophet’s ﷺ grave without a journey made for that purpose. The Encyclopedia notes that before Ibn Taymiyyah the Shafi‘i scholar al-Juwayni and the Maliki scholar Qadi ‘Iyad held a similar view. Those of the opposing view relied on reports encouraging the visit; Taqi al-Din al-Subki wrote a work criticising this view, and Ibn ‘Abd al-Hadi wrote a rebuttal of al-Subki.
Where does one enter ihram when going from Madinah to Makkah for Umrah?
Sahih hadith
The Prophet ﷺ set Dhu al-Hulayfah as the miqat for the people of Madinah, and it applies to everyone passing through it. Those travelling from Madinah to Makkah enter ihram in Madinah or, at the latest, at Dhu al-Hulayfah (Abyar ‘Ali) on the way out of the city.
3Entering the Prophet’s Mosque5 questions
What du‘a is said on entering and leaving the mosque?
Sahih hadith
The Prophet ﷺ said: “When one of you enters the mosque, let him say: ‘O Allah, open for me the doors of Your mercy,’ and when he leaves: ‘O Allah, I ask You of Your bounty.’”
اللَّهُمَّ افْتَحْ لِي أَبْوَابَ رَحْمَتِكَ
O Allah, open for me the doors of Your mercy. (On leaving: O Allah, I ask You of Your bounty.)
With which foot does one enter the mosque?
Fiqh
It is sunnah to enter a mosque with the right foot and leave with the left. The Prophet ﷺ liked to begin with the right in his affairs as far as he could.
What does one do first after entering?
Sahih hadith
The Prophet ﷺ said: “When one of you enters the mosque, let him pray two rak‘ahs before sitting.” This prayer, tahiyyat al-masjid, is recommended. Praying an obligatory or other prayer counts in its place. If one cannot pray, it is recommended to say: “Subhan Allah, wal-hamdu lillah, wa la ilaha illallah, wallahu akbar.”
Differences of opinion: Tahiyyat al-masjid is two or four rak‘ahs for the Hanafis. The Hanafis, Malikis and Hanbalis do not pray it at times when voluntary prayer is disliked; for the Shafi‘is it may be prayed at those times too.
What is the virtue of praying in the Prophet’s Mosque?
Sahih hadith
The Prophet ﷺ said: “One prayer in this mosque of mine is better than a thousand prayers elsewhere, except al-Masjid al-Haram.” According to Diyanet this virtue is not limited to the Rawdah; it covers the whole mosque, including its expansions. During one’s days in Madinah, one tries to pray the five daily prayers there.
Which is “the mosque founded on piety”?
Sahih hadith
The Qur’an mentions “a mosque founded on piety from the first day.” When the Prophet ﷺ was asked which mosque this was, he said “this mosque of yours,” meaning the mosque of Madinah. It is also reported that the verse refers to the Quba Mosque.
4The Rawdah4 questions
What is the Rawdah and what is its virtue?
Sahih hadith
The Prophet ﷺ said: “Between my house and my pulpit is a garden of the gardens of Paradise, and my pulpit is over my Basin.” The name “Rawdah” comes from this hadith.
Where is the Rawdah?
Fiqh
The Rawdah is the area between the Blessed Chamber (containing the Prophet’s ﷺ grave) and the pulpit. Today it measures about 22 m east–west and 15 m north–south, roughly 330 m², with the pulpit on its west side and the mihrab in the middle. Scholars differ on its exact extent and on whether the hadith is literal or figurative.
What if I cannot pray in the Rawdah?
Fiqh
Pray in the Rawdah if possible; otherwise pray anywhere in the Prophet’s Mosque. Praying in the Rawdah is not part of Hajj or Umrah, and missing it leaves no deficiency in one’s worship.
Practical note (not a religious ruling): Appointments to visit the Rawdah are issued free of charge through the Saudi Ministry of Hajj and Umrah’s official Nusuk app and website. Procedures may change; check before you go.
How should one behave in the crowd at the Rawdah?
Sahih hadith
The Prophet ﷺ said: “The Muslim is the one from whose tongue and hand the Muslims are safe.” Pushing, hurting others or keeping one’s place from others for a long time in the Rawdah goes against this etiquette. One does not speak loudly near the grave.
5Greeting the Prophet ﷺ and his two Companions6 questions
How does one greet the Prophet ﷺ?
Fiqh
Stand respectfully in front of the grave, facing it, and say: “As-salamu ‘alayka ayyuha al-Nabiyyu wa rahmatullahi wa barakatuh,” then continue with blessings and greetings. This wording is the greeting the Prophet ﷺ taught in the tashahhud of the prayer. The Qur’an also commands the believers to send blessings and peace upon the Prophet ﷺ.
السَّلاَمُ عَلَيْكَ أَيُّهَا النَّبِيُّ وَرَحْمَةُ اللَّهِ وَبَرَكَاتُهُ
Peace be upon you, O Prophet, and the mercy of Allah and His blessings.
How does one greet Abu Bakr and ‘Umar?
Companions
Abu Bakr and ‘Umar, buried in the same chamber, are also greeted: “As-salamu ‘alayka ya Aba Bakr, as-salamu ‘alayka ya ‘Umar.” It is authentically reported, as a Companion’s practice, that ‘Abdullah ibn ‘Umar would stand at the Prophet’s ﷺ grave and invoke blessings on the Prophet ﷺ, Abu Bakr and ‘Umar.
Does our greeting reach the Prophet ﷺ?
Hasan hadith
The Prophet ﷺ said: “No one greets me but Allah returns my soul to me so that I return his greeting.” In another hadith he said: “Do not make my grave a place of festivity; send blessings upon me, for your blessings reach me wherever you are.”
How loud should one be near the grave?
Fiqh
The Qur’an commands the believers not to raise their voices above the Prophet’s ﷺ voice; the verse concerns his gatherings during his lifetime. Scholars state that the same etiquette is observed at his grave: one does not speak loudly and avoids behaviour that disturbs people; in short, one behaves as visitors behaved in his lifetime.
Which way does one face when making du‘a after the greeting?
Fiqh
When greeting, one faces the grave. For grave visits in general, the TDV Encyclopedia says du‘a may be made facing the qiblah or the grave. For details on which way to face when making du‘a at the Prophet’s ﷺ grave, consult a trusted scholar. Du‘a is made to Allah alone; nothing is asked of the one in the grave.
What should be avoided during the visit?
Fiqh
Do not walk around the grave; do not kiss or rub your face on its stones, threshold, grille or cover; ask nothing of the one in the grave but ask Allah alone. The Prophet ﷺ forbade sitting on graves and praying towards them.
6Visiting al-Baqi‘5 questions
What is al-Baqi‘ and who is buried there?
Fiqh
Al-Baqi‘ is the cemetery in the south-east of Madinah, near the Prophet’s Mosque. The first of the Emigrants buried there was ‘Uthman ibn Maz‘un. Buried there are the Prophet’s ﷺ son Ibrahim, his daughters Ruqayyah and Zaynab, Fatimah, al-Hasan, his uncle al-‘Abbas, his aunt Safiyyah, many of his wives, among them ‘A’ishah, Hafsah and Umm Salamah, and Companions such as ‘Uthman, ‘Abd al-Rahman ibn ‘Awf, Sa‘d ibn Abi Waqqas, ‘Abdullah ibn Mas‘ud and Abu Hurayrah. Today there are no tombs or gravestones.
What did the Prophet ﷺ do at al-Baqi‘?
Sahih hadith
‘A’ishah reported that the Prophet ﷺ would go out to al-Baqi‘ at the end of the night, greet those buried there and pray: “O Allah, forgive the people of Baqi‘ al-Gharqad.”
اللَّهُمَّ اغْفِرْ لأَهْلِ بَقِيعِ الْغَرْقَدِ
O Allah, forgive the people of Baqi‘ al-Gharqad.
What du‘a is said when visiting graves?
Sahih hadith
The Prophet ﷺ taught his Companions to say when they went out to the graveyard: “Peace be upon you, O inhabitants of these dwellings, believers and Muslims. We shall, if Allah wills, join you. I ask Allah for well-being for us and for you.” Graves are not stepped or sat on.
السَّلاَمُ عَلَيْكُمْ أَهْلَ الدِّيَارِ مِنَ الْمُؤْمِنِينَ وَالْمُسْلِمِينَ، وَإِنَّا إِنْ شَاءَ اللَّهُ لَلاَحِقُونَ، أَسْأَلُ اللَّهَ لَنَا وَلَكُمُ الْعَافِيَةَ
Peace be upon you, O inhabitants of these dwellings, believers and Muslims. We shall, if Allah wills, join you. I ask Allah for well-being for us and for you.
What is the purpose of visiting graves?
Sahih hadith
The Prophet ﷺ said: “I had forbidden you to visit graves; now visit them, for they remind you of the Hereafter.” The visit is for remembering death and the Hereafter and praying for the dead. Most scholars hold that visiting graves is recommended.
May women visit graves?
Fiqh
For the Hanafis women are under the same ruling as men here, so visiting is recommended for them too. It is not permitted if it leads to wailing or other conduct contrary to the etiquette of visiting.
Differences of opinion: The majority consider women’s grave visits disliked (makruh). For the Shafi‘is and Hanbalis a visit with wailing is forbidden and one only for reflection is disliked; some Shafi‘is and Malikis permit it.
7The Quba Mosque3 questions
What is the Quba Mosque?
Fiqh
Quba is where the Prophet ﷺ stayed during the Hijrah before reaching Madinah, and he built its mosque himself. It is especially important as the first mosque the Muslims built openly and in safety.
When did the Prophet ﷺ go to Quba?
Sahih hadith
Ibn ‘Umar reported that the Prophet ﷺ would go to the Quba Mosque every Saturday, sometimes walking and sometimes riding, and pray two rak‘ahs there. Ibn ‘Umar did the same.
What is the reward of praying in Quba?
Sahih hadith
The Prophet ﷺ said: “Whoever purifies himself in his house, then comes to the Quba Mosque and prays a prayer there, will have a reward like that of an Umrah.” Another narration says: “Prayer in the Quba Mosque is like an Umrah.”
8Uhud and its martyrs4 questions
What was said about Mount Uhud?
Sahih hadith
When the Prophet ﷺ approached Madinah and saw Uhud, he said: “This is a mountain that loves us and we love it.”
Who are the martyrs of Uhud?
Sahih hadith
At the Battle of Uhud (Shawwal 3 AH / March 625 CE) the Muslims lost seventy martyrs. The Prophet ﷺ ordered them buried in their blood, unwashed. His uncle Hamzah was buried in the same grave as his nephew ‘Abdullah ibn Jahsh. Most of the martyrs, with Hamzah, rest there. The Qur’an says those killed in Allah’s cause are not to be thought dead; they are alive with their Lord.
Did the Prophet ﷺ remember the martyrs of Uhud?
Sahih hadith
‘Uqbah ibn ‘Amir reported that eight years later the Prophet ﷺ prayed for the martyrs of Uhud as if bidding farewell to the living and the dead, then ascended the pulpit and addressed the people.
What does one do at the Uhud cemetery?
Sahih hadith
The general etiquette of grave visits applies: greet them with the grave-visit du‘a the Prophet ﷺ taught, pray for the martyrs and reflect on the Hereafter. Today the cemetery is a walled open area without tombs.
9Other historic places3 questions
What is Masjid al-Qiblatayn?
Fiqh
Qiblatayn means “the mosque of two qiblahs”; its original name was the Mosque of Banu Salimah. It lies about 5 km from the Prophet’s Mosque. Verse 2:144 announces the change of the qiblah from Jerusalem to the Ka‘bah. According to a historical report cited by the TDV Encyclopedia, the verse was revealed while the Prophet ﷺ was leading prayer here, and so the mosque received this name; this report could not be verified in the authentic hadith collections. The hadith in al-Bukhari says that the first prayer the Prophet ﷺ offered facing the Ka‘bah was ‘Asr, and that a man who had prayed with him told the congregation of another mosque, while they were bowing, and they turned towards the Ka‘bah during the prayer; that mosque is not named in the hadith.
What are the “Seven Mosques”?
Fiqh
This is the name given to small mosques north-west of Mount Sal‘. Masjid al-Fath is remembered as the place where the Prophet ﷺ supplicated during the Battle of the Trench. Some of these mosques were built in later periods; today all but Masjid al-Fath and the Mosque of Salman al-Farisi have been demolished and a new mosque has been built in the area.
Is there a special act of worship at these places?
Fiqh
The TDV Encyclopedia describes these places historically and mentions no worship or virtue specific to them, and there is no act of worship specific to the sanctuary of Madinah. This guide includes no report of special reward for any mosque other than the Prophet’s Mosque and Quba. On entering them, as in any mosque, one may pray two rak‘ahs of tahiyyat al-masjid.
10Common mistakes6 questions
Mistake: thinking Hajj or Umrah is incomplete without visiting Madinah
Fiqh
Correct: Visiting Madinah, praying in the Rawdah and visiting the Prophet’s ﷺ grave are not a fard, wajib or sunnah of Hajj or Umrah. The worship of one who cannot do them is complete; for those able, they are highly virtuous.
Mistake: believing forty prayers in the Prophet’s Mosque are required
Fiqh
Correct: Forty prayers are not a fard, wajib or sunnah of Hajj; missing them is no deficiency. The narration behind this belief, “Whoever prays forty prayers in my mosque…” (Ahmad, al-Musnad), is not used as evidence: Diyanet states its authenticity is disputed, and al-Albani graded it munkar (weak) (Silsilat al-Ahadith al-Da‘ifah, no. 364). If one’s stay allows, it is good to keep praying in congregation there without counting.
Mistake: rubbing against or kissing the grille, walls or grave stones; walking around the grave
Fiqh
Correct: Do not walk around the grave; do not kiss or rub your face on its stones, threshold, grille or cover. Ask nothing of the one in the grave; du‘a is made to Allah alone.
Mistake: praying facing a grave
Sahih hadith
Correct: The Prophet ﷺ said: “Do not sit on graves and do not pray towards them.” Prayer is made facing the qiblah.
Mistake: speaking loudly or pushing near the Prophet’s ﷺ grave
Fiqh
Correct: The Qur’an forbids raising one’s voice above the Prophet’s ﷺ voice, and scholars state that this etiquette is also observed at his grave. Near the grave one does not speak loudly or hurt anyone; greet him and make room for others.
Mistake: thinking one must enter Madinah in ihram
Fiqh
Correct: According to all jurists, entering Madinah does not require ihram. Ihram is assumed at the miqat when heading to Makkah for Hajj or Umrah.