Beside Masjid an-Nabawi lies the resting place of thousands of the Companions and the family of the Prophet ﷺ. Who is buried in Jannat al-Baqi, how to visit according to the Sunnah, and when to go.
Just a few steps from the courtyard of Masjid an-Nabawi lies a quiet, walled cemetery that holds some of the most beloved people in Islamic history. Jannat al-Baqi, also called Baqi' al-Gharqad, is the main cemetery of Madinah, and a visit there is one of the most moving moments of any trip to the City of the Prophet ﷺ.
This guide explains the history of al-Baqi, who is buried there, how to visit according to the Sunnah, and the practical details every pilgrim should know.
The history of al-Baqi
When the Prophet ﷺ settled in Madinah, al-Baqi was an open area of land with gharqad trees, close to the new mosque. It became the burial ground of the Muslims of Madinah from the earliest years. The Prophet ﷺ himself would go out to al-Baqi, often at night, to greet its people and pray for their forgiveness.
Over the centuries the cemetery has been expanded many times. Today it lies on the eastern side of Masjid an-Nabawi's courtyard, enclosed by a wall, with simple, unmarked graves in keeping with the Sunnah.
Who is buried in Jannat al-Baqi
Thousands of the Companions (Sahabah) are buried in al-Baqi, along with members of the Prophet's family and many great scholars of later generations. Among those whose graves are reported to be there:
- 'Uthman ibn 'Affan, the third caliph (may Allah be pleased with him).
- Many of the Mothers of the Believers, the wives of the Prophet ﷺ, including 'A'ishah and Hafsah (may Allah be pleased with them).
- Ibrahim, the infant son of the Prophet ﷺ, over whom the Prophet ﷺ wept.
- Members of the Prophet's family, including his daughters and his uncle al-'Abbas.
- Imam Malik ibn Anas, the great scholar of Madinah, and many others.
Because the graves are kept simple and unmarked, you will not see names or tombstones. The visit is about remembrance and dua, not finding individual graves.
Why the Sunnah encourages visiting graves
The Prophet ﷺ said: "Visit the graves, for they remind you of the Hereafter." A visit to al-Baqi softens the heart, reminds us that this life is short, and lets us pray for those who gave so much for Islam.
The purpose is twofold: to remember death and the Hereafter, and to pray for the believers buried there. The dead are not asked for anything; we ask Allah for them.
The Sunnah greeting at the graves
The Prophet ﷺ taught his Companions to say when visiting graves:
"As-salamu 'alaykum ahl ad-diyar min al-mu'minin wal-muslimin, wa inna in sha' Allahu bikum lahiqun. Nas'alu Allaha lana wa lakum al-'afiyah."
"Peace be upon you, people of these dwellings, believers and Muslims. We will, if Allah wills, join you. We ask Allah for well-being for us and for you."
After the greeting, make dua for the people of al-Baqi, for your own family members who have passed away, and for yourself. You may raise your hands in dua while facing the Qiblah.
Visiting times
Al-Baqi is usually opened for visitors for a period after Fajr and after Asr, when the weather is cooler. Times can change with the season and with crowd management, so check at the gate or ask your hotel. Arrive early, because queues can form at the entrance during busy seasons.
Scholars hold different views on women visiting graves, and access for women is often limited; women may make the same dua from outside the wall or from the courtyard of Masjid an-Nabawi. Ask a scholar you trust about your situation.
Etiquette inside the cemetery
- Walk calmly and quietly. This is a place of reflection.
- Do not sit, step or lean on the graves.
- Do not touch, wipe or kiss the soil or walls for blessing, and do not take earth or stones.
- Make dua to Allah only. Do not call on the dead or ask them for help.
- Follow the instructions of the staff, who manage the flow of visitors and guide people along the paths.
- Avoid photographs and filming inside, out of respect for the place and other visitors.
Lessons to take from al-Baqi
Standing beside the resting place of those who lived with the Prophet ﷺ, many pilgrims feel how short their own life is. The Companions buried here left their homes, wealth and families for Allah, and their reward is with Him. Let the visit renew three things in your heart: sincere repentance, a resolve to use your remaining time well, and love for the Companions and the family of the Prophet ﷺ. Remember also your own parents and relatives who have passed away, and include them in your dua.
Combining al-Baqi with your Madinah day
Many pilgrims visit al-Baqi straight after praying Fajr in Masjid an-Nabawi, then return to the mosque for morning dhikr and Qur'an. Others go after Asr, when the light is soft. Because it sits right beside the mosque, no transport is needed. For the other sacred places of Madinah, such as Quba Mosque, Masjid al-Qiblatayn and Mount Uhud, see our Madinah Ziyarat guide.
Frequently asked questions
Is there a special prayer to perform at al-Baqi? No. There is no special prayer; you give the Sunnah greeting and make dua for the believers.
Can I find the grave of a particular Companion? The graves are unmarked, so it is not possible to identify most of them. Your greeting and dua reach all the believers buried there.
How long does a visit take? Usually 20 to 30 minutes, depending on queues.
Plan your Madinah stay
A hotel close to Masjid an-Nabawi makes it easy to visit al-Baqi after Fajr or Asr without long walks. Haramain Safa Travels books hotels near the Haram in Madinah, private transfers from Makkah, and a gentle Madinah Ziyarat tour. Send us your dates or message us on WhatsApp to plan your stay.