Section 393(4) in Bharatiya Nagarik Suraksha Sanhita, 2023
(4)When the conviction is for an offence punishable with imprisonment for a term of one year or more, but the Court imposes a sentence of imprisonment for a term of less than three months, it shall record its reasons for awarding such sentence, unless the sentence is one of imprisonment till the rising of the Court or unless the case was tried summarily under the provisions of this Sanhita.