Section 267(2) in The Code of Criminal Procedure, 1973
(2)Where an order under sub-Section (1) is made by a Magistrate of the second class, it shall not be forwarded to, or acted upon by, the officer-in-charge of the prison unless it is countersigned by the Chief Judicial Magistrate to whom such Magistrate is subordinate.