We cannot hesitate to affirm the judgment of the court below. It manifestly granted all that the plaintiff could in conscience ask, and, perhaps, more than in strictness he was entitled to have.
If it be granted that the several things agreed to be done were all essential parts of the same contract, as alleged in the complaint, (and this is by no means certain), and that the contract was in any aspect of it usurious, nevertheless, every usurious feature of it was abandoned and surrendered by the defendants, and the court simply allowed them the money due them and the lawful interest thereon.
The plaintiff, a debtor conies into court, asking equitable relief, and this the court will grant to the extent he shows himself entitled; but, in doing so, it will compel him to do equity in respect of the matter in controversy towards the party against whom he seeks relief; he must pay the defendants the money justly due them, and they are entitled to the full benefit of the security 'for it provided in the deed of trust mentioned in the *51pleadings. A just maxim of equity is, that he who seeks equity must do equity, and applying this rule, a court of equity will not set aside a contract or transaction in an action brought by the borrower of money for that purpose, unless upon the terms and requirements that he will pay the lender the sum of money that is bona fide due him. This rule, however, does not apply to the case of a lender of money who comes into court asking the enforcement of his usurious claim; he would encounter another maxim, which requires him who would sue in a court of equity to come with clean hands.
The court, having by this action acquired jurisdiction of the parties to the deed of trust, the deed itself and the property conveyed by it, had power to direct a sale of the property specified in the deed, and to make all proper orders and decrees to that end.
It was not bound to direct a sale of the property in strict accordance with the terms prescribed in the deed; in this respect, it ought to exercise a sound discretion, having due regard, under the circumstances of the case, for the rights of the debtor and the creditors respectively.
Hence, the court properly provided in its judgment, that the plaintiff might, within a reasonable time, sixty days in this case, pay the money due from him to the defendants-into court, and if he failed to do so, then, that the trustee named in the deed should sell the property according to its terms. We see nothing unreasonable or unjust in the judgment, towards the plaintiff. The cause is retained for further orders. If the money shall be paid as required, proper orders and decrees discharging the debt and property will be entered at the next or subsequent term of the court; if the property shall be sold, like orders and decrees in respect to passing the title to the purchaser, and disposing of the money, the proceeds of the sale, will be made.
It is scarcely necessary to remark upon the plaintiff’s claim set forth in the complaint, that he had the right to have notice of the defendants’ purpose to advertise and sell the property *52before they did so, because the bringing of this action and what has been done in it, has obviated all question in that respect. Lest,, however, it may be supposed that we passed it by unnoticed, we will add, that the plaintiff was not entitled to notice to pay the debt mentioned in the deed of trust before advertisement of the property for sale by the trustee. Such notice was not provided for in the deed; it was expressly provided that in default of payment of the debt as provided, the trustee should sell the property and apply the money, the proceeds of the sale, as therein directed. In the absence of any express stipulation to-that effect, there is nothing in the deed, or its nature, or the character or circumstances of the debt, that implied a right to such notice; nor is there any rule of law or equity that gives such right, and for the plain reason, that the parties to the deed agreed in terms that in the contingency provided for, the trustee-might sell the property. The plaintiff thus obliged himself to-take notice of the time of payment and his default in failing to-pay, and the defendant's right to sell consequent thereupon.
The parties had the right to make such agreement, and when made in good faith and in the absence of fraud or some inequitable cause, the contract must operate according to its legal effect. All persons competent to contract may make such lawful contracts as they see fit to make, unrestrained by courts of justice, either in the making or enforcement of them.
A court of equity cannot make a contract for parties, nor has it the power to modify or' defeat one when made, if it be valid.. The office and purpose of such a court is to enforce such contract, stripped of fraud, oppression, mistake or undue advantage,, or like defect or objection, and according to the true intent and meaning of the parties to it.
Courts of equity in some cases nullify or set aside contracts for causes that render them void or voidable; they, in other cases, uphold contracts accordingly as the parties really make them, without regard to forms or imperfection, and require, as nearly as may be, each party to do exact justice to the other.
*53We are not unmindful of what was said in Capehart v. Biggs, 77 N. C. R. 261, in inspect to notice to the debtor of advertisement and sale of property conveyed to a' trustee with power of ■sale to pay debts. With great respect for the opinion of the eminent Judge who delivered the opinion in that case, we are very sure that the rule as to notice in such cases, as laid down b3r him, has only what he there said to support it, and it must in our judgment, apply to that case alone. We reiterate what was said in Bridgers v. Morris, 90 N. C. R. 32, in respect to the case above cited.
The judgment must be affirmed. Let this opinion be certified -according to law.
No errror. Affirmed.