At the sheriff's sale, the person making the sale must give to the purchaser a certificate of sale as provided by section 28-23-11, and at the expiration of the time for the redemption, if not redeemed, the person making the sale, or the successor in office, must give the purchaser, the purchaser's heirs, or assigns, or to any person who has acquired the title of the purchaser by redemption or otherwise, a deed. The deed vests in the grantee all the right, title, and interest of the mortgagor in and to the property sold, at the time the mortgage was executed or subsequently acquired by the mortgagor and is a bar to all claim, right, or equity of redemption in or to the property by the parties to the action, their heirs and personal representatives, and also against all persons claiming under them, or any of them, subsequent to the commencement of the action.
N.D.C.C. § 32-19-09