*108By the court, We incline to think the agreement set forth in the respondents’ papers was unlawful and could not be enforced by legal process. If it was a valid agreement, the defendants’ right to relief, and to have the judgment set aside, and to be restored to the same condition they were in before it was entered, is clear. There is no contradiction of the facts stated in the affidavits on the part of the defendants, and they show that the judgment was entered up in palpable violation of the agreement.
Welles, J.On the other hypothesis that the agreement was unlawful, we think the same result substantially should follow. The agreement appears to have been entered into in sincerity, and under it the defendants have been induced to make large payments in money, and have done and performed everything on their part required by the agreement, and undoubtedly under the supposition and belief that the agreement was valid and binding upon both parties. If the plaintiff or his attorney intended to disaffirm or repudiate it, good faith required of them to apprise the defendants of such intention, in time to enable them to defend themselves against the proceeding of the plaintiff in entering up and perfecting the judgment. Instead of which the defendants were allowed to proceed in the performance of the agreement on their part, with the knowledge and participation therein of the plaintiff or his attorney, without an intimation on the part of the latter, that the agreement was not to be fully executed and performed by all the parties, until the sheriff called upon the defendants with the execution and levied upon their store of goods. To allow the plaintiff to retain his judgment and execution, would be to give him an unjust and unconscientious advantage.
The order of the special term should therefore be affirmed, with $10 costs.
Leonard, J.I think the entry of judgment was invoking the aid of the court at a time when, if notice had been *109served so that the other party could have been heard, the leave to enter judgment would have been denied.
The judgment should be set aside, with costs.
Clerke, J., concurred.