Masjid an Nabawi, the Mosque of the Prophet ﷺ in Madinah, is the second holiest mosque in Islam. The Prophet ﷺ built it with his own hands after the Hijrah, led the prayers in it for ten years, and is buried in what was once the room of ‘A’ishah at its south-eastern corner.
Visiting the mosque is not a rite of Umrah or Hajj, and neither is incomplete without it. Yet almost every pilgrim tries to come, because it is one of only three mosques to which the Prophet ﷺ encouraged people to travel. This page explains its history, what is and is not from the Sunnah, and how to make the most of your days there.

The history and significance of Masjid an Nabawi
When the Prophet ﷺ arrived in Madinah in 1 AH, his camel knelt on a plot used for drying dates that belonged to two orphan boys, Sahl and Suhayl. He insisted on paying for the land rather than accepting it as a gift, and the mosque was built there with walls of mud brick, pillars of palm trunks and a roof of palm fronds (al-Bukhari). His house, with rooms for his wives, adjoined its eastern side.
Masjid an Nabawi was far more than a place of prayer. It was the school where the Companions learned the religion, the court where disputes were settled, the place where delegations were received and the shelter of the poor of the Suffah. Much of the Sunnah we follow today was first seen and heard inside its simple walls.
Expansions through the centuries
The Prophet ﷺ himself enlarged the mosque after Khaybar. ‘Umar and then ‘Uthman expanded it, and under the Umayyad caliph al-Walid ibn ‘Abd al-Malik the rooms of the Prophet’s ﷺ wives were brought inside, so that his grave lay within the mosque. The dome over the grave was first built in the Mamluk period and later painted green under the Ottomans, who also rebuilt much of the prayer hall in the nineteenth century.
Saudi expansions in the twentieth century multiplied the area many times. Today Masjid an Nabawi and its marble plazas, shaded by giant folding umbrellas, can hold well over a million worshippers at peak times.
The virtue of praying in Masjid an Nabawi
The Prophet ﷺ said, “Do not set out on a journey except to three mosques: al-Masjid al-Haram, this mosque of mine, and al-Masjid al-Aqsa” (al-Bukhari and Muslim). He also said, “One prayer in this mosque of mine is better than a thousand prayers in any other mosque, except al-Masjid al-Haram” (al-Bukhari and Muslim).
Scholars differ on whether this multiplied reward applies only to the original mosque of the Prophet’s ﷺ time or to all of its later expansions. Many hold that it covers the whole of Masjid an Nabawi as it stands today, since the Companions prayed in the expanded areas without distinction.
What is from the Sunnah (and what is not)
The Sunnah is to travel with the intention of visiting and praying in Masjid an Nabawi. Once you are in Masjid an Nabawi, it is recommended for men to go to the grave of the Prophet ﷺ and greet him, and then greet Abu Bakr and ‘Umar, who are buried beside him. Ibn ‘Umar used to do this when he returned from a journey (Malik, al-Muwatta’). Scholars differ on whether women should visit graves; many permit an occasional visit with restraint, while others discourage it.
Scholars also differ on whether one may set out on a journey with the sole intention of visiting the grave. A safe approach that all agree on is to intend the mosque, then greet the Prophet ﷺ once you are there.
Customary practices with no basis
Some popular practices have no basis in the Sunnah and should be avoided:
- Wiping or kissing the walls, grilles, pillars or doors for blessing.
- Raising the voice at the grave, crowding and pushing, or lingering so long that others cannot pass.
- Facing the grave while making dua; the Companions faced the qiblah when supplicating.
- Calling on the Prophet ﷺ to grant needs, rather than asking Allah directly.
- Taking dust, stones or anything from Masjid an Nabawi as a keepsake.
You will also hear of a hadith promising safety from hypocrisy to whoever prays forty consecutive prayers in the mosque (Ahmad). Many hadith scholars grade its chain as weak, so do not exhaust yourself or your family over it. Pray as many prayers in Masjid an Nabawi as you can, with calm and sincerity.
What to do and what to read in Masjid an Nabawi
Enter with your right foot and say the dua for entering the mosque. If it is not a time when prayer is disliked, pray two rak‘ahs of greeting the mosque before you sit.
بِسْمِ اللهِ، وَالصَّلَاةُ وَالسَّلَامُ عَلَى رَسُولِ اللهِ، اللَّهُمَّ افْتَحْ لِي أَبْوَابَ رَحْمَتِكَ
Bismillah, wa-s-salatu wa-s-salamu ‘ala rasulillah. Allahumma-ftah li abwaba rahmatik.
In the name of Allah, and peace and blessings be upon the Messenger of Allah. O Allah, open for me the doors of Your mercy.
Source: Muslim; Ibn MajahWhen you reach the Prophet’s ﷺ grave, stand calmly at the brass grille, lower your voice and give the greeting. Then step a little to the right to greet Abu Bakr, and a little further to greet ‘Umar. Keep it short and move on so that others can follow.
السَّلَامُ عَلَيْكَ يَا رَسُولَ اللهِ
As-salamu ‘alayka ya Rasulallah.
Peace be upon you, O Messenger of Allah.
Source: The practice of Ibn ‘Umar (Malik’s Muwatta’; al-Bayhaqi)Beyond that, the best use of your time is simple: pray the five daily prayers in congregation, read Qur’an, make dua facing the qiblah, send abundant salawat on the Prophet ﷺ and attend the lessons held in the mosque. If you can obtain a permit, pray in the Rawdah as well. Leave with your left foot, saying the dua for leaving the mosque.
بِسْمِ اللهِ، وَالصَّلَاةُ وَالسَّلَامُ عَلَى رَسُولِ اللهِ، اللَّهُمَّ إِنِّي أَسْأَلُكَ مِنْ فَضْلِكَ
Bismillah, wa-s-salatu wa-s-salamu ‘ala rasulillah. Allahumma inni as’aluka min fadlik.
In the name of Allah, and peace and blessings be upon the Messenger of Allah. O Allah, I ask You of Your bounty.
Source: Muslim; Ibn MajahHow to get to Masjid an Nabawi
From Masjid al-Haram in Makkah
Madinah is roughly 450 km north of Makkah. The Haramain high-speed train is the quickest option, taking around two and a quarter to two and a half hours between the cities. From Madinah station a taxi or ride-hailing car to the mosque takes about 15 to 20 minutes. By road, coaches and private cars take around four and a half to five hours, with a rest stop on the way.
From your Madinah hotel or the airport
Most hotels in the central area are within a five to fifteen minute walk of the plazas of Masjid an Nabawi. From Prince Mohammad bin Abdulaziz Airport, allow 20 to 30 minutes by taxi in normal traffic. City buses also serve the central area. Expect more time around the Friday prayer and during Ramadan, when roads near the mosque are closed to traffic.
Practical tips for Masjid an Nabawi
Note your gate
Masjid an Nabawi has dozens of numbered gates. Remember the gate nearest your hotel and agree a meeting point.
Arrive early
For Fajr, Jumu‘ah and the Ramadan nights, come well before the adhan to find space inside.
Bring a shoe bag
Carry your shoes with you or use the numbered racks so you can find them again.
Women’s sections
Women have their own gates and prayer halls; check which gates open to them at each prayer.
Stay hydrated
Zamzam water dispensers stand throughout the mosque and plazas.
Book the Rawdah
Rawdah visits need a Nusuk permit. Book as soon as your dates are confirmed.
Masjid an Nabawi quick facts
| City | Madinah |
|---|---|
| Location | The heart of central Madinah |
| Founded | 1 AH, by the Prophet ﷺ after the Hijrah |
| Time needed | As much as you can; plan your stay around the five prayers |
| Best time | Any time; Fajr is unforgettable |
| Difficulty | Easy: flat plazas, wheelchair access at many gates |
| Sunnah to visit | Yes, one of the three mosques worth travelling to |
| Open to visitors | Open around the clock for Muslims; some areas close between prayers |
Masjid an-Nabawi
The heart of Madinah
Open in Google MapsNearby ziyarat- The Rawdah (Riyad al-Jannah)0.0 km
- Masjid Ali0.2 km
- Seerah Museum0.2 km
- Masjid al-Ghamamah0.3 km
For the wider city, read our Madinah city guide and the Madinah ziyarat guide. Close by you can visit the Rawdah, Jannat al-Baqi‘ and Masjid Quba, and the ziyarat route planner helps you fit them around your prayers. If Madinah comes after your Umrah, our guide on how to perform Umrah covers the rites in Makkah. Browse every site on the ziyarat hub, or request a tailored quote. Permits for the Rawdah are issued through Nusuk.
Masjid an Nabawi: frequently asked questions
Is visiting Masjid an Nabawi part of Umrah or Hajj?
No. It is a separate, highly recommended visit. Your Umrah or Hajj is complete without it.
Do I need ihram to enter Madinah?
No. Ihram is only for Umrah or Hajj. If you travel from Madinah to Makkah for Umrah, enter ihram at Dhul Hulayfah (Abyar ‘Ali) on the way.
Do I have to pray forty prayers there?
No. The hadith about forty prayers is graded weak by many scholars. Pray as many prayers as you comfortably can.
Can women greet the Prophet ﷺ at his grave?
Scholars differ on women visiting graves. Women can send salam on the Prophet ﷺ from anywhere, and it reaches him. Check locally for any visiting times set aside for women.
Does the thousand-fold reward include the plazas?
Scholars differ. Many say it covers the mosque and its expansions; the open plazas are a matter of discussion, so pray inside when you can.
Is the Rawdah open to everyone?
Entry to the Rawdah requires a permit booked through the Nusuk app, with separate times for men and women. Rules change, so check Nusuk before you travel.
Stay steps from the Prophet’s ﷺ Mosque
We can arrange hotels close to Masjid an-Nabawi, Haramain train tickets and help with planning your Rawdah visit.
