The Specific Relief Act,1963
Section 33. Power to require benefit to be restored or compensation to be made when instrument is cancelled or is successfully resisted as being void or voidable
(1) On adjudging the cancellation of an instrument, the Court may require the party to Whom such relief is granted, to restore, so far as may be any benefit which he may have received from the other party and to make any compensation to him which justice may require.
(2) Where a defendant successfully resists any suit on the ground. –
(a) That the instrument sought to be enforced against him in the suit is voidable. the court may if the defendant has received any benefit under the instrument from the other party, require him to restore, so far as may be, such benefit to that party or to make compensation for it;
(b) That the agreement, ought to be enforced against him in the Suit is Void by reason of his not having been competent to contract under Section II of the Indian Contract Act,1972, the court may, if the defendant has received any benefit under the agreement from the other party, require him to restore, so far as may be. such benefit to that party, to the extent to which he or his estate has benefited thereby.