Section 317 in The Indian Penal Code (IPC)

Exposure and abandonment of child under twelve years, by parent or person having care of it. Whoever being the father or mother of a child under the age of twelve years, or having the care of such child, shall expose or leave such child in any place with the intention of wholly abandoning such child, shall be punished with imprisonment of either description for a term which may extend to seven years, or with fine, or with both. The relatively less understanding of IPC 317 prevents the trial of the offender for murder or culpable homicide, as the case may be, if the child dies in consequence of the exposure.