If after any sale of real estate, made as prescribed in sections 49 to 49v, the officer or other person making the sale has any surplus money after satisfying the mortgage on which the real estate was sold, and payment of the costs and expenses of the foreclosure and sale, the surplus shall be paid over by the officer or other person on demand, to the mortgagor or his or her legal representatives or assigns, unless at the time of the sale, or before the surplus is paid over, a claimant or claimants file with the person making the sale, a claim or claims, in writing, duly verified by the oath of the claimant or his or her agent or attorney, that the claimant has a subsequent mortgage or lien encumbering the real estate, or some part of the real estate, and stating the amount of the mortgage or lien unpaid, setting forth the facts and nature of the mortgage or lien, in which case the person making the sale shall immediately upon receiving the claim pay the surplus to, and file the written claim with, the clerk of the circuit court for the county in which the sale is made. A person interested in the surplus may apply to the court for an order to take proofs of the facts and circumstances contained in the claim or claims filed. The court shall summon the claimant or claimants, party, or parties interested in the surplus to appear before the court at a time and place named by the court, and attend the taking of the proof, and the claimant or claimants or party interested who appear may examine witnesses and produce such proof as they see fit. The court shall make an order directing the disposition of the surplus money or payment of the surplus money in accordance with the rights of the claimant or claimants or persons interested.
MCL 125.1449n