DUA FOR THE DECEASED
When the grave is leveled, any one may put his hand on it, open the fingers, press them on the grave, and pray for the dead person, saying:

When people leave, the nearest relative of the dead person should remain there, praying Almighty Allah’s mercy on the dead person. If nothing prevents from so, this person should call at the dead loudly and say these words:

.....

.