The ruling of standing at Graves to seek forgiveness and pray for the Deceased after burying him
Question :
Is it permissible to stand at the grave to seek forgiveness or supplicate for the deceased after burying him and sprinkle dirt on top of it?
Answer:
Yes, it is permissible to stand at the grave of the deceased after burying him and sprinkle dirt over it, for seeking forgiveness and supplicating for him. Actually, that is recom- mended due to what Abu Dawud and Al-Hakim recorded, and Al-Hakim graded it authentic, that 'Uthman said: "Whenever the Messenger of Allâh completed burying the deceased, he would stand over him and say:
'Seek forgiveness for your brother and ask for steadfastness for him. For verily he is being questioned now."
Source:
The Permanent Committee
Fatawa Islamiyah, Vol. 3 Pages 87-89