When, at an execution sale, the amount of the sale exceeds the judgment, interest and costs, the excess must be paid to the debtor or his legal representative. When money is paid or collected on an execution, the whole or any part of which is enjoined, the same must, on demand, be refunded to the debtor or his legal representative if it has been paid over to the plaintiff, his agent or attorney without notice of the injunction.
Ala. Code § 6-9-93 (1975)