Question
Can a person perform the prayers of someone who has died?
Answer
الحمد لله، والصلاة والسلام علىٰ رسول الله، أما بعد!
There is no mention anywhere in the Book and the Sunnah of praying, on behalf of the deceased, the prayers he left in his lifetime. That is, if a person was unable to perform his prayers during his life and then died, his heirs or close relatives cannot perform those prayers on his behalf.
However, there are some other acts of worship that can be performed on behalf of the deceased, provided they were obligatory upon him during his life but he was unable to perform them. These include:
Making up fasts on behalf of the deceased:
The Messenger of Allah ﷺ said:
«مَنْ مَاتَ وَعَلَیْهِ صِیَامٌ صَامَ عَنْهُ وَلِیُّهُ»
Translation: “Whoever dies while fasts are owed by him, his guardian should fast on his behalf.”
Hajj on behalf of the deceased:
Sahih Muslim also mentions performing Hajj on behalf of the deceased, from which it is understood that if Hajj was obligatory upon the deceased and he was unable to perform it during his life, a close relative of his can perform Hajj on his behalf.
Payment of debt and zakah on behalf of the deceased:
Similarly, if the deceased owed a debt or zakah was obligatory upon him which he did not pay during his life, the heirs or someone else can make these payments on his behalf. This act is established from the Book and the Sunnah.
ھذا ما عندي والله أعلم بالصواب