Section 442(2) in Bharatiya Nagarik Suraksha Sanhita, 2023
(2)No order under this section shall be made to the prejudice of the accused or other person unless he has had an opportunity of being heard either personally or by advocate in his own defence.