I borrowed some money from a man, then he went away and I do not know where he is now.
If you owe someone a debt or a loan and you do not know where he has gone, you have not been able to find out his whereabouts, and you have despaired of returning the debt to him, then give it as charity on his behalf, intending the reward for him. If he comes back, tell him. If he approves of the charity, that is fine; otherwise, pay him his debt, and for you there will be the reward of the charity.
Reference: Al-Lajnah al-Daimah: 16513