Returning ill-gotten money to its rightful owners

A:
He should repay every penny he received to
the people to whom money is due if they are still alive. If they are dead, he has to give it to their heirs. If it is impossible to do so in any case, then he has to pay this money as charity on behalf of those to whom money is due.