A man has died, and I owe him some money
It is obligatory upon you to search for his heirs and give them the deceased’s money, because when a person dies, his wealth passes to his heirs. If you are unable to identify them, then give the money as charity on behalf of its owner, that is, make the intention on behalf of the one whose money it is. Allah the Almighty, with His knowledge, power and strength, will convey it to the one to whom it is due.
Reference: ابن عثيمين: نور على الدرب: 17/234