If, when neither the legal title nor the possession of the subject matter of the contract has been transferred, all or a material part thereof is destroyed without fault of the purchaser or is taken by eminent domain, the vendor cannot enforce the contract, and the purchaser is entitled to recover any portion of the price that he has paid.
SDCL 43-26-6