If any judgment, in satisfaction of which any real property be sold, shall at any time thereafter be reversed, such reversal shall not defeat or affect the title of the purchaser; but in such case restitution must be made by the judgment creditor of the money for which such real property was sold, with lawful interest thereon from the day of sale.
SDCL 15-19-18