Minn. Stat. § 558A.15
When a party entitled to a share in the property, or an encumbrancer entitled to have a lien paid out of the proceeds of the same, becomes a purchaser, the referee may take the receipt for so much of the proceeds of the sale as belong to the entitled party or encumbrancer.