Whoever, being a public servant and having the custody of any State prisoner or prisoner of war, voluntarily allows such prisoner to escape from any place in which such prisoner is confined, shall be punished with imprisonment for life, or imprisonment of either description for a term which may extend to ten years, and shall also be liable to fine.
CHAPTER VII OF OFFENCES AGAINST THE STATE
Section 156: Public servant voluntarily allowing prisoner of State or war to escape
The Bharatiya Nyaya Sanhita, 2023
Corresponding IPC provision
As given in the correspondence table of the National Crime Records Bureau (Ministry of Home Affairs). Read both texts before relying on it. NCRB table