Section 144(1) in The Code of Civil Procedure, 1908
(1)Where and in so far as a decree [or an order] is [varied or reversed in any appeal, revision or other proceeding or is set aside or modified in any suit instituted for the purpose, the Court which passed the decree or order] [Substituted by the Code of Civil Procedure (Amendment) Act, 1976, Section 48, for certain words (w.e.f. 1.2.1977).] shall, on the application of any party entitled to any benefit by way of restitution or otherwise, cause such restitution to be made as will, so far as may be, place the parties in the position which they would have occupied but for such decree [or order] [Inserted by Act 66 of 1956, Section 13.] or [such part thereof as has been varied, reversed, set aside or modified] [Substituted by the Code of Civil Procedure (Amendment) Act, 1976, Section 48, for certain words (w.e.f. 1.2.1977). ] and, for this purpose, the Court may make any orders, including orders for the refund of costs and for the payment of interest, damages, compensation and mesne profits , which are properly [consequential on such variation, reversal, setting aside or modification of the decree or order] [Substituted by the Code of Civil Procedure (Amendment) Act, 1976, Section 48, for certain words (w.e.f. 1.2.1977). ].[ Explanation .-For the purposes of sub-section (1), the expression "Court which passed the decree or order" shall be deemed to include,-(a)where the decree or order has been varied or reversed in exercise of appellate or revisional jurisdiction, the Court of first instance;(b)where the decree or order has been set aside by a separate suit, the Court of first instance which passed such decree or order;(c)where the Court of first instance has ceased to exist or has ceased to have jurisdiction to execute it, the Court which, if the suit wherein the decree or order was passed were instituted at the time of making the application for restitution under this section, would have jurisdiction to try such suit.]