Question: What is the ruling on placing iron or wood on a grave as a marker, so that the person in the grave can be recognised by this marker?
Answer: There is no harm in this, because Imam Abu Dawud narrated in hadith
from al-Muttalib bin Abdullah bin Mantab that when Uthman bin Maz’un (may Allah be pleased with him) was buried after his death, the Messenger of Allah ﷺ commanded a man to bring a stone. When he brought the stone, the Prophet ﷺ placed that stone near the head of Uthman bin Maz’un as a marker and said:
اتعلم بها قبر اخي وادفن إليه من مات من أهلي
“I will recognise the grave of my brother by this marker, and whoever of my family dies, I will bury him next to Uthman bin Maz’un.”
Abu Dawud (may Allah have mercy on him) remained silent about this mentioned hadith, and this hadith is salih (acceptable) according to him, that is, according to Abu Dawud this hadith is valid as proof and evidence. This marker is placed so that the deceased can be recognised at the time of visiting, and also so that the person visiting the grave can supplicate, and can bury other relatives and kinsfolk beside it, so that visiting all of them becomes easy. This marker can be made of stone, brick, wood and the like, and it is to be placed near the head of the occupant of the grave or at one of its sides.
However, constructing buildings over graves is forbidden. In Sahih Muslim, Jabir (may Allah be pleased with him) reports that:
نهى رسول الله صلى الله عليه وسلم أن یقعد على القبر وان يجصص وان يبنى عليه وفي رواية وان يزاد عليه وأن يكتب عليه
“The Messenger of Allah ﷺ forbade sitting on a grave, plastering it, and constructing a building over it.”
And in another narration: “He ﷺ also forbade adding extra soil to a grave and writing anything on it.”
The meaning of the prohibition of the above-mentioned matters is that they are forbidden, and the wisdom in this is that these things become a basis for fitnah (trial). For when the common people see that this grave has been made higher than other graves, or has been coated with lime, or has something written on it that consists of praise of the deceased or undue eulogy, then it is difficult to keep such a grave safe from the common people going to it, then holding gatherings there, and holding beliefs of sainthood and virtue about the occupant of the grave. All of these things lead to venerating and sanctifying the deceased, honouring and revering him, supplicating the occupant of the grave, seeking blessing from the dust of the grave, and sitting in devotional retreat (i’tikaf) at the grave. Such superstitions are found more in countries where ignorance is greater, and shirk has become widespread in those countries. There the dead are worshipped, supplications are made to them, animals are slaughtered in the names of the dead, and offerings are presented. The basis of all these acts of shirk is the needless elevation of the status of the dead and the raising of their graves, or else the prompting of Satan. Satan prompts the common people, suggesting that perhaps there is a wali (saint) or a martyr in this grave. And these very acts become a cause of fitnah and deception for the common people. And Allah knows best!