581. Buraidah (May Allah be pleased with him) reported: Messenger of Allah (sallallaahu ’alayhi wa sallam) said, "(In the past) I forbade you from visiting graves, but visit them now.''
In another narration Messenger of Allah (sallallaahu ’alayhi wa sallam) said, "Whoever wants to visit a graveyard, let him do so, because it reminds us of the Hereafter.''
Commentary: The visit to the graves is not only recommendable from a theological point of view but, in the light of the Prophetic saying, it is also compulsory and binding. However, at the dawn of Islam it was forbidden due to the apprehension that the Muslims might relapse into some wrongdoing by harking back to the pre-Islamic memory. But when the Monotheistic Belief took root in their minds and the apprehension of pagan echoings evaporated, the ban on visiting the graves was lifted. Rather an emphasis was laid on such a visit, so that an overpowering thought of death might penetrate a believer's mind as a deterrent force against the promptings of his animal self. The believers must remember death and remember that they will be dead sooner or later. It has been reported that `Umar bin Al-Khattab(May Allah be pleased with him) used to address himself thus: "Death suffices to serve as an admonitor, O `Umar!''
582. `Aishah (May Allah be pleased with her): reported Whenever it was her turn to spend with Messenger of Allah (sallallaahu ’alayhi wa sallam), he used to go to the Baqi` (graveyard in Al-Madinah) at the last part of night and say, "May you be safe, O abode of the believing people. What you have been promised has come to you. You are tarried till tomorrow and certainly we shall follow you if Allah wills. O Allah, forgive the inmates of the Baqi`-al-Gharqad.''
Commentary: The example of Messenger of Allah (sallallaahu ’alayhi wa sallam) shows that it is right to visit the graves even at night. But the visitor is required to pray the Prophetic prayer there as it invokes Divine blessing on and pardon to the dead. It may be emphasized here that to greet the dead is a prayer for them. It is not necessary that they should hear it and also respond to it. Allah has the power to make them hear it, too. But ours should not be the belief that the dead do hear and reply. The exact position is known to Allah Alone. We are only supposed to follow the example of Messenger of Allah (sallallaahu ’alayhi wa sallam) and say the greeting and prayer as mentioned above.
583. Buraidah (May Allah be pleased with him) reported: The Prophet (sallallaahu ’alayhi wa sallam) used to teach them (i.e., the Companions) whenever they came out to visit the graveyard to say: "As-salamu `alaikum ahlad-diyyari minal-Mu'minina wal-Muslimina, wa inna in sha' Allahu bikum lahiqun. As'alul-laha lana wa-lakumul- `afiyyah (May you be safe, O inmates of the abodes of the believers and the Muslims, and if Allah pleases, we shall follow you, we pray to Allah for well-being for ourselves and for you).''
Commentary: This Hadith has a provision for a believer to visit the graveyard and to pray for his dead relatives, because the prayer of the living benefits the departed souls.
584. Ibn `Abbas (May Allah be pleased with them) reported: Messenger of Allah (sallallaahu ’alayhi wa sallam) passed by the graves at Al-Madinah. He turned his face towards them and said, "May you be granted safety, O inmates of the graves. May Allah forgive us and you. You have preceded us, and we are to follow.''
Commentary: Imam At-Tirmidhi considers it as a credible Hadith and Imam An-Nawawi has also reduced it to writing without `ifs' and `buts'. However, Shaikh Al-Albani calls it undependable from the viewpoint of the chain of reporters. For a detailed study, one may refer to Ahkam Al-Jana'iz by Al-Albani, page 197.