Foreclosure; or After Sale on Execution, Before Conveyance. The court may, by injunction, on good cause shown, restrain the party in possession from doing any act to the injury of real property during the foreclosure of a mortgage thereon; or, after a sale on execution, before a conveyance. SOURCE: CCP § 745.