Section 258(2) in Bharatiya Nagarik Suraksha Sanhita, 2023
(2)If the accused is convicted, the Judge shall, unless he proceeds in accordance with the provisions of section 401, hear the accused on the questions of sentence, and then pass sentence on him according to law.[Similar to Section 235 from Old CrPC-Also Refer]