Answered by Shaykh Faraz Rabbani
Giving money to the poor as expiation for missed prayers of the deceased
Wa Alaykum Assalam wa Rahmatullah wa Barakatuhu,
In the Name of Allah, Most Merciful & Compassionate
One way of lessening or lifting the sin of having missed prayers and other religious obligations is to leave a bequest (from up to 1/3 of one’s post-debt estate) to expiate for those obligations.
This is effective to the extent of the sincerity (and remorse) of the one making the bequest.
The inheritors can agree to pay this amount off, whether from the inheritance (if they all willingly agree) or from their own money.
It is best to give the money to the most needy and deserving, and to seek the assistance of a reliable scholar in determining the amount and distributing as described below.
Please see the following link in answer to your question: