Some years ago, I borrowed an amount of money from a friend who died recently before I was able to repay him. Since my friend was a widower who had no children, I do not know to whom I should pay this debt. Is it permissible to pay the amount I borrowed from him on his behalf to some educational institution to use it in the form of a scholarship to the poorest but talented students, or what should I do with the money?

Although your motive is noble, you must take certain steps before any possibility of using the money in the way you have suggested or in some other way, can ever be contemplated. The first is to try to find out any relatives of your friend who were his heirs. You say that he was without a wife and without children. It may be that one of the parents survived him. If so, that parent is an heir of the first degree. It may be that your friend was survived by a brother or a sister, who would in the circumstances be his heirs. If you know any such relative of your deceased friend, then you should contact him or her and explain the situation. When you have established who had a share in your friend’s estate, you should seek to meet them all. When you have met his heirs, you should determine their shares in your friend’s estate and divide the loan you owed to your friend among them in the same shares they have received of his estate. You may leave that responsibility to your late friend’s first heir, if you know him to be honest.

Let us, for example, suppose that one of your friend’s heirs was entitled to half his estate and there are four more heirs who received the remainder divided amongst them on the basis of one share for a woman and two shares for a man. You then give half the loan to the heir who received half of the estate and divide the other half among the four heirs in the same proportion. In the case that such heirs survived your friend, you cannot utilize the amount of the loan in any way other than paying it to his heirs. This is due to the fact that when a person dies, what he leaves behind becomes the property of his heirs in accordance with the shares appointed to them by God in the detailed Islamic system of inheritance.

If you do not know any of your friend’s relatives, then you should take every reasonable step which could help you determine whether he had any heirs or not. You may consider placing an advertisement in the local papers stating that you owe him some money and you want to pay it to his heirs. Therefore, they should contact you by telephone or mail. You may deduct the cost of such reasonable steps as you may take from the amount of the loan. When you have taken all reasonable measures to find out who your friend’s heirs are and to contact them, and no one comes forward to claim any portion of the loan, then you may consider other measures. Prior to that, you cannot dispose of it in any way, even though it may bring reward to your deceased friend. In the case of no claims of inheritance whatsoever, the method you have suggested of investing the money and using the proceeds to pay for scholarships, to enable poor Muslim students complete their studies, is a very good one.

However, I must say that it is very rare that a person dies without a single legitimate heir surviving him. To be in that position, he would be the last of his family and the last of his mother’s family. This is an extreme rarity. A person may be without children, without a wife and without parents, but he may have brothers and sisters. If he has not, his father might have had brothers or sisters and if all of those have died, one of them might have had children and they, in the circumstances, qualify as heirs. When no immediate heir is available the estate of the decease goes to “the nearest male relative,” as the Prophet, peace be upon him, has taught us. You have to make sure that this situation of no heirs whatsoever applies in the case of your deceased friend before you could dispense of the loan in the way you have suggested.