Sunnah of the Prophet (pbuh) on visiting the graves
We should strictly follow the Sunnah of the Prophet (pbuh). It is stated that he used to visit graves. I would be grateful if you could enlighten me as to what he used to do at the graveyards?
Answer
One of the prayers (du’a) that the prophet, alaihissalaam, is reported to have made while visiting a graveyard was in these words:
“Peace be on you, O! the residents of graves. You have preceded us and we are following your footsteps.”
Since graves of relatives are an effective reminder of death, the prophet encouraged believers to visit them frequently. Of course, prayers were also rendered for the forgiveness of the dead and for raising their status in the Afterlife.
What I have emphasized in the previous message is that no prayer of the prophet for the dead contains a mention that indicates that he asked the Almighty to transfer any of his own deeds in favour of any deceased person. That is something completely against the principles of Islam. And Allah knows best.