Visiting graves in Islam: what to say, what to do, who may go
Visiting graves is permitted and encouraged in Islam. The greeting the Prophet ﷺ taught, what to do at the grave, and where scholars differ on women visiting.
The first visit after a burial is often the hardest, and families tell us the same two worries: whether they should be there at all, and what they are supposed to say once they are. The tradition answers both plainly. Visiting graves is permitted and encouraged, the Prophet ﷺ taught a greeting for the moment you arrive, and the rest is a short list of courtesies.
This article sets out what the texts say, where the scholars differ, and the practical side of visiting a grave in an American cemetery. It describes positions rather than ruling on them; where your family follows a particular scholar, their answer comes first.
Is visiting graves allowed in Islam?
Yes. In the early years in Medina the Prophet ﷺ forbade visiting graves, and he later lifted the prohibition himself. The report is in Sahih Muslim (977a), narrated by Buraydah: "I forbade you to visit graves, but you may now visit them." The version in Jami' at-Tirmidhi (1054) gives the reason: "visit them, for they will remind you of the Hereafter."
At-Tirmidhi adds that the scholars act on this and see no harm in visiting graves, naming Ibn al-Mubarak, ash-Shafi'i, Ahmad and Ishaq. Most describe visiting as recommended rather than merely allowed, because of what it does for the visitor.
What the Qur'an says about visiting graves
The Qur'an mentions grave visiting once, in Surah at-Takathur 102:1 to 2, as a warning rather than a rule:
أَلْهَاكُمُ التَّكَاثُرُ حَتَّىٰ زُرْتُمُ الْمَقَابِرَ
Alhākumu t-takāthur, ḥattā zurtumu l-maqābir. Competition for more diverts you, until you visit the graves.
Commentators read it as reaching the grave yourself; a visit is meant to interrupt that competition for a moment.
What to say when visiting a grave
The Prophet ﷺ taught his companions a greeting to say as they entered the graveyard. It is in Sahih Muslim (975):
السَّلَامُ عَلَيْكُمْ أَهْلَ الدِّيَارِ مِنَ الْمُؤْمِنِينَ وَالْمُسْلِمِينَ، وَإِنَّا إِنْ شَاءَ اللَّهُ بِكُمْ لَاحِقُونَ، أَسْأَلُ اللَّهَ لَنَا وَلَكُمُ الْعَافِيَةَ
As-salāmu ʿalaykum ahla d-diyāri mina l-muʾminīna wa-l-muslimīn, wa innā in shāʾa Llāhu bikum lāḥiqūn, asʾalu Llāha lanā wa lakumu l-ʿāfiyah. Peace be upon you, people of these dwellings, believers and Muslims. We shall, God willing, join you. I ask Allah for well-being for us and for you.
Aisha was taught a similar greeting at al-Baqi', the cemetery of Medina (Sahih Muslim 974b), which also asks Allah's mercy for those gone before and those to come. Either greeting is said once, on arrival, to everyone buried there, not only the person you came to see.
Then pray for the deceased, in your own words or in the short Arabic supplications. The commonest is اللَّهُمَّ اغْفِرْ لَهُ وَارْحَمْهُ, Allāhumma ghfir lahu wa-rḥamhu, "O Allah, forgive him and have mercy on him", with لَهَا وَارْحَمْهَا (lahā wa-rḥamhā) for a woman. These and the other phrases are collected, with transliterations, in the words families place on Muslim headstones; the supplication engraved on the stone is usually the one the family says in front of it.
What to read when visiting a grave
Here the scholars part ways. One position is that the visit consists of the greeting and supplication, because that is what the Prophet ﷺ taught and did, and nothing else is established. Another, held by many scholars across the schools, is that reciting Qur'an at the grave is permitted and good, and that its reward may be given to the deceased. Answers from Hanafi muftis, for example, commonly recommend al-Fatihah, the short surahs, Ayat al-Kursi and Ya Sin (one such answer also lists the etiquettes of the visit).
If your family recites, recite quietly, for the deceased. If your family does not, the greeting and a sincere du'a are the whole of the Sunnah.
What to do at the grave, and what not to do
- Stand or sit beside the grave, never on it. "Do not sit on the graves and do not pray facing towards them," in Sahih Muslim (972a); a report in the same collection (971a) says it would be better to sit on a live coal. Keep to the paths between rows rather than crossing the plots.
- Do not pray salah towards a grave, and do not prostrate to one. Scholars are agreed that prostration belongs to Allah alone. Supplication is made to Allah for the deceased, not to the deceased.
- Shoes. In Sunan Abi Dawud (3230) the Prophet ﷺ told a man walking between graves in sandals to take them off. Some scholars take this at face value; others read it as specific to that kind of sandal or to walking on the graves themselves. In an American lawn cemetery most visitors keep their shoes on and keep off the graves.
- Grief is allowed; wailing is not. In Sahih al-Bukhari (1283) the Prophet ﷺ passed a woman weeping at a grave and told her to fear Allah and be patient. He did not tell her to leave. Tears are natural; loud lamentation and hired mourning are what the tradition forbids.
- Raising the hands. Aisha's account records the Prophet ﷺ standing a long time at al-Baqi' and raising his hands three times, so raising the hands in du'a at the graveside is established.
- Placing something on the grave. In Sahih al-Bukhari (216) the Prophet ﷺ placed a fresh palm frond on each of two graves, hoping their punishment would be lightened while it stayed green. Scholars differ on whether others may follow this, so flowers and greenery on a Muslim grave are a matter of family custom and scholarly opinion rather than a settled rule. The cemetery has its own rules, discussed below.
Can women visit graves in Islam?
The difficulty is a report in Jami' at-Tirmidhi (1056) in which the Prophet ﷺ cursed women who visit graves; the Arabic word, zawwārāt, means frequent visitors. At-Tirmidhi records both readings. Some scholars, he says, held that this was before the general permission, which then included men and women. Others held that visiting is disliked for women because of their lesser patience and greater grief. Those are still the positions today, with refinements:
- Permitted, with conditions. Many scholars, citing Aisha's visit and the greeting she was taught, the weeping woman the Prophet ﷺ did not send away, and the general permission, hold that women may visit provided there is no wailing, no mixing with unrelated men, and modest dress. Al-Qurtubi, Ibn Hajar and ash-Shawkani are usually cited for this view (Islam Online sets out the evidence on each side).
- Disliked. The Shafi'i school's recorded position is that it is disliked for women, neither forbidden outright nor unconditionally allowed. Some Hanafi answers distinguish by age, permitting older women and discouraging the young.
- Not permitted. Some scholars hold that the curse report stands and that women should not visit graves at all.
The honest summary is that most scholars allow it with the conditions above, that some discourage it, and that a woman's own scholar can tell her where her school lands.
When to visit a grave
No day or time is prescribed. The Prophet ﷺ went to al-Baqi' at night, and the greeting was taught for "when they went out to the graveyard", with no day attached. Many families visit on Fridays, on the two Eids, or on the anniversary of the death, and there is nothing wrong with those days; scholars caution only against treating a date as a required rite. In practice the limits are the cemetery's: most American cemeteries close at dusk, so check the hours before a night-time or early Eid visit.
Visiting a parent's grave
The permission was tied to a parent from the start: the Tirmidhi version says that Muhammad ﷺ was permitted to visit his mother's grave, and then the permission was extended to everyone. The supplication of Surah al-Isra 17:24, "My Lord, have mercy on them both, as they raised me when I was small", is the line for that visit, and one of the lines most often cut into a parent's headstone.
Finding the grave, and what you may leave on it
Finding the plot. In a new Muslim section the grave is marked at first only by the cemetery's temporary marker, which fades, sinks or is moved by the mowers within months. Write down the section, row and plot number from the burial paperwork, and have the permanent marker set as soon as the cemetery allows; flat and bevel markers can usually go in within weeks, as explained in when to set the headstone. The Prophet ﷺ placed a stone at the head of a companion's grave so it could be found again, which is the subject of what Islamic tradition says about grave markers.
Orientation. Muslim graves are dug so the deceased lies on the right side facing the qibla, so the rows in a Muslim section often run at an angle to the rest of the cemetery, and the headstone stands at the head end.
Flowers, plants and objects. Whatever the family's view on the palm-frond report, the cemetery decides what may be left on a grave. Lawn cemeteries typically allow fresh flowers in a sunk vase and remove loose bouquets, pots, ornaments and plantings so the section can be mown. Some Islamic cemeteries ask for nothing at all on the graves. The questions to ask the office are in our checklist of cemetery rules for Islamic headstones.
The stone itself. A visit is also the moment to look at the marker. Lichen in the lettering and a sunk corner are normal and fixable, and most damage is done by cleaning with the wrong things. How to clean one safely is in caring for a granite headstone.
Before you go
Take the greeting with you, in Arabic or in your own language, and the names of the people buried there. Decide beforehand, with your family and if needed your scholar, whether you will recite, and let that be the end of the matter at the graveside. Leave the grave as you found it, and leave the cemetery with the reminder the visit was for.
If the permanent marker is not yet in place, that is the one practical thing a visit can set in motion. A plain stone with the name, the dates in both calendars and the supplication the family says at the grave fits almost every Islamic cemetery's rules; what such a stone looks like, and how to get one, is in Muslim headstones for graves. You can design it in the studio, with the Arabic shaped correctly, and take the dimensioned drawing to the cemetery office on your next visit.