Section 277(1) in Bharatiya Nagarik Suraksha Sanhita, 2023
(1)If the Magistrate does not convict the accused under section 275 or section 276, the Magistrate shall proceed to hear the prosecution and take all such evidence as may be produced in support of the prosecution, and also to hear the accused and take all such evidence as he produces in his defence.