The court, on its own motion or upon application of any party in interest, in its discretion, may restrain a personal representative from making any sale under an authority not given by the governing instrument or from carrying out any contract of sale made by him under an authority not so given. The order may be conditioned upon the applicant giving bond for the protection of parties in interest who may be prejudiced thereby. The order shall be void as against a bona fide grantee of, or holder of a lien on, real estate unless the decree restraining the sale, or a duplicate original or certified copy thereof, is recorded in the deed book in the office of the recorder of deeds in the county in which such real estate lies, before the recording or entering of the instrument or lien under which such grantee or lienholder claims.
20 Pa.C.S. § 3355