A Debtor Giving the Debt to the Mosque on Behalf of the Creditor
Question
A certain person owes a debt. The one to whom it is owed said to him: “Give my money, which is due from you, to the mosque.” The debtor gave money to the mosque equal to the amount of his debt on his own behalf. However, when it became known that “you should first have repaid the debt,” the one who gave the money to the mosque — that is, the debtor — says: “Whatever I gave to the mosque, I gladly pay on behalf of the creditor towards his due, and its reward as well; I gladly say: may Allah Most High (Haqq Taʿala)
Answer
In this way the debt will be discharged, and its reward will also be obtained.
Source: Fatawa Mahmudiyya
Preview. The full text opens with JavaScript enabled.