Visiting the graves of faithful believers brings about a great reward from the Almighty, as it gives lessons in religiousness and arouses the remembrance of the temporary nature of this world. When we lose those near and dear to us, we deal with this separation in different ways. Islam tells us that when it comes to the living and the dead, the living can still do things to improve the spriritual status of the dead during the barzakh, the purgatory.
It is recommended to visit the graves of the family members since, in words of the Sixth Imam (a.s.), “they recognize you [when you visit them] and feel lonely when you leave them.