Whenever any land, sold by an executor, administrator, guardian, sheriff or commissioner of court, is afterwards recovered in the proper action by any person originally liable, or in whose hands the land would be liable to pay the demand or judgment for which, or for whose benefit the land was sold, or any one claiming under such person, the plaintiff shall not be entitled to the possession of the land until he has refunded the purchase money with interest, deducting therefrom the value of the use, rents and profits, and injury done by waste and cultivation, to be assessed under the provisions of this article.
Okla. Stat. tit. 12, § 1487