— The equity of the Plaintiff arises from the insolvency of Helme. The right of the latter to assign the judgment, was lost when he became unable to exonerate the Plaintiff from the thraldom in which he was placed on account of the suretyship — when Helme became unable to reciprocate the act which he required Williams to perforin. I do not know a plainer equity ; indeed it was admitted in the argument, that if Williams had, before the assignment, actually suffered, he would be entitled to the relief which he asks. Or if he had, before the assignment, applied to this Court to restrain Helme from transferring, that then the assignment would not avail, as it would have been made in violation of an order of the Court. Williams has other equities besides those arising from actual sufferings. As a surety, he has a right to have his fears and apprehensions quieted, to be made safe from apprehended harm. He need not wait till he has suffered, because his equity arises before that time; and this seems to be admitted in that part of the argument, which rather concedes, that he might have obtained an order that Helme should not assign. And as to the position, that Williams should have applied to a Court of Equity to restrain Helme from transferring, l think that his enmity is higher than any which could arise from the violati >n of orders or rules of Court, it is independent of them — it aris es from the principle first mentioned, that Helme could neither, by himself, nor by another, require of Williams to do, what *160}ie (ffelme) was unable to do towards him, from the fact of his insolvency. Williams being indebted to him, was also bound for him in a very large sum, from which he sustained a loss of double the amount of the sum which Williams owed. The debt which the Plaintiff owed, should have been left in his hands, as an indemnity in part for his loss. It is true, that if the judgment had been of a negotiable character, it would have been proper to have applied to a Court to restrain its negotiation ; for had it been of that character, Williams might have had a legal owner to contend with, one who stood upon his own right, instead of those of another — and who would not, as these Defendants, represent the original creditor, and be bound by every obligation which was imposed upon him.
The Defendants say, it might possibly be different, if they were suitors to the Court; but they are riot, they ask nothing of this Court. In this they are mistaken ; they are applicants for a favor, in the character of Defendants. The law gives them nothing; their rights are not known at law. They would not be even heard to allege them — there Helme is still the owner of the judgment. Here, the Defendants are made parties by mere courtesy. The Plaintiff might have left them to come into ■this Court as petitioners, asking to be permitted to use the name of Helme. They owe their existence as claimants to the principles of this Court, and they ask to do, in the name of their assignor, what it would be the height of iniquity to permit him to do, because they say, that the latter sold to them — but Helme had nothing that he could sell. I think, therefore, that the injunction should be perpetuated. I have viewed the case, as if Helme intended no actual fraud, when he assigned to the Defendants. He says so, and there is nothing to induce a belief that he did. But the fad is, that he was then insolvent, and therefore could pass nothing in the judgment, as against the Plaintiff.
— I am of opinion that the prayer of this bill could not be rejected, without violating very clear principles of natural justice, and subverting that series «Í decisions, by which this Court lias been constantly guided, for the protection of sureties. It is not controverted, that the estate of the I’laintiff’s intestate. who vas surety for llrtme, be,came liable to pay a considerable sum for him, a very short time after the confession of judgment, and that this money was subsequently paid out of the estate. It is very evident, that if Jlelme had attempted to enforce the judgment upon the expiration of the stay, he would have been enjoined, unless lie 'countersecured the estate against his own debts. When the debts of IMme were paid out of the estate, his debt against it was extinguished, according to sucli plain principles of justice, that 1 imagine the law of every ci-vilised nation has adopted them. In the civil law, it was called compensation, and is thus spoken of by a writer on that law: “’When it is .said that compensation is made ipso jure, it means that it is made by the mere operation of law, without being pronounced by the Judge or opposed by the parties. As .soon as a person, who ivas creditor of another, becomes his debtor of a sum of money, or oilier matter susceptible of compensation with that of which he was a creditor; and vice versa, as soon as a person who was debtor to another, becomes his creditor of a sum susceptible of compensation with that of which he was a debtor, a compensation is made, and the respective debts are from thenceforth extinguished, to the extent of their concurrence, by virtue of the law of compensation.*’ (Potior on obligations, 599.) As the civil law exists in Scotland, the principle is there adopted without variation, and it is held that where the same person is both debtor and creditor to another, the mutual obligations, if they are for equal sums, are extinguished by compensation. [Erskine’s Institutes, 325.)
*162 Williams had a well ascertained equitable right against Helme, before payment of money for him, and might have called upon him in this Court to relieve him from his liability by payment of the debt, and would certainly have been allowed to set off the judgment against it. The case of Lee v. Rock, furnishes an instance where a man borrowed money on the mortgage of his estate for another of his being allowed to go into equity, to have his estate disencumbered by him, and the covenant in the mortgage deed was held to bind the Defendant, though no party to it; but the money being borrowed for him, it was his debt, and the surety was only a nominal person. (Moseley 319.) And be may not only come here to be relieved from his liability, but as soon as he becomes liable to the creditor, or is endangered, though he has not paid the debt, he has a right to enforce mortgages, or other counter securities given to indemnify him.(Antrobus v. Davidson 3 Merivalle 579, Tankersly v. Anderson, 4 Dessaus. 44.)
This was the relation in which Williams stood to Helme immediately after the confession of judgment, and when the true state of the latter’s affairs were known. This equity was prior then to any which could be acquired by the assignees of the judgment. But there was in fact no equity to be acquired by them, for it would be against first principles that the assignor should place the assig-nee in a better situation than he stood himself. Policy has introduced an exception with respect to bills of exchange, and notes endorsed before they are due, but in all other respects the rule and law of this Court are on that subject universal. (Cotes v. Jones, 2 Vern. 692— Davis v. Austin. 1 Ves. jun. 247.)
As many of our most valuable principles of equity, as well as law, are derived from the civil law, it is not surprising to meet with almost the very case before us, stated in a work of authority on that law, as administered in Scotland. “Though, says the writer, compensation cannot be pleaded after the decree, either against the cre*163ditor or his assignee, yet if the original Creditor should become bankrupt, the debtor, even after decree, may retain against the assignee, till he give security for satis-lying the debtor’s claim against the cedent.” (Erskine’s Institutes, 328.)
— Let the Judgment be made perpetual with costs.