Section 23 of The Indian Evidence Act, 1872
23. Admissions in civil cases, when relevant.—In civil cases no admission is relevant, if it is made either upon an express condition that evidence of it is not to be given, or under circumstances from which the Court can infer that the parties agreed together that evidence of it should not be given. Explanation.—Nothing in this section shall be taken to exempt any barrister, pleader, attorney or vakil from giving evidence of any matter of which he may be compelled to give evidence under section 126.