Section 183(3) in Bharatiya Nagarik Suraksha Sanhita, 2023
(3)If at any time before the confession is recorded, the person appearing before the Magistrate states that he is not willing to make the confession, the Magistrate shall not authorise the detention of such person in police custody.