Let us consider the authentic Hadith carefully: “When a human being dies, all his actions come to an absolute end except in one of three ways: A continuous act of charity, a useful contribution to knowledge or a dutiful child who prays for him.” You will realize that while we are in a position to benefit the dead by praying for them, they are in no position to benefit us. When a person visits a tomb and asks the deceased to intercede with Allah on his behalf, he is guilty of associating partners with Allah; making that deceased a deity, on a junior or senior level.