Question
What is the ruling on praying two rak'ahs for a deceased person so that Allah may forgive them?
Answer
I say, and with God's success: It is permissible to dedicate the reward of prayer to the deceased, but prayer is not performed for the deceased, and God knows best.