When any Court has under section 384 adjudged an offender to punishment, or has under section 385 forwarded him to a Magistrate for trial, for refusing or omitting to do anything which he was lawfully required to do or for any intentional insult or interruption, the Court may, in its discretion, discharge the offender or remit the punishment on his submission to the order or requisition of such Court, or on apology being made to its satisfaction.
CHAPTER XXVIII PROVISIONS AS TO OFFENCES AFFECTING THE ADMINISTRATION OF JUSTICE
Section 387: Discharge of offender on submission of apology
The Bharatiya Nagarik Suraksha Sanhita, 2023
Corresponding CrPC provision
As given in the correspondence table of the National Crime Records Bureau (Ministry of Home Affairs). Read both texts before relying on it. NCRB table