When any real estate has been heretofore or shall be hereafter sold by any executor or administrator under or by virtue of an order of the district court and the sale shall have been approved by the district court and the purchaser shall have paid the purchase money for the same, and the sale shall have been made in good faith, in order to provide for payment of the claims against the estate, and the executor or administrator shall have failed or neglected to make or execute any deed conveying such real estate to such purchaser, or if from mistake or omission in the deed or defect in its execution the same shall be inoperative, and the period of five years shall have elapsed after the making of such sale, then in such case all such sales shall be, and are confirmed and approved, notwithstanding any irregularities or informalities in the proceedings prior to the sale. When such facts shall be made to appear in any action to quiet title to such real property against the heirs or their assigns of the deceased person whose property shall have been thus sold, then the court shall make its decree quieting such title and compelling and ordering conveyances of the same to be made to such purchaser, his heirs, or assigns, as if a valid contract to convey the real property had been made by such deceased person in his lifetime. No action shall be maintained by such heirs, or their heirs or assigns, to dispossess and such purchaser, his heirs or assigns, after the expiration of five years from any such sale.