Section 393(3) in Bharatiya Nagarik Suraksha Sanhita, 2023
(3)When the conviction is for an offence punishable with death or, in the alternative, with imprisonment for life or imprisonment for a term of years, the judgment shall state the reasons for the sentence awarded, and, in the case of sentence of death, the special reasons for such sentence.