"It is one of the rights of a Muslim over another Muslim that he should visit his grave."
Imam Ja'fer As-Sadiq (A.S.)
Upon seeing the graves , one must greet them (with salaam). The following salaam is recommended:
Wherever possible face qibla, and recite Suratul Fatiha for all the marhumeen.
On the grave you are visiting recite:
Suratul Fatiha three times
Suratul Qadr three times
Ayatul Kursi three times
Suratul Falaq three times
Suratun Naas three times
Suratu Yaseen
Any dua asking Allah's forgiveness for the marhum/a
Respect the sanctity of the grave yard. The prophet (S.A.W.) has said:
"If I have to walk over burning desert or fire or to place my foot on the edge of a sharp sword, I would prefer it to trampling on the grave of a Muslim."
He also said to Imam Ali (A.S.):
"Ya Ali! Allah considers a few things undesirable for my followers. One of them is laughing in a graveyard….."