102. If a person, by doing anything which he intends or knows to be likely to cause death, commits culpable homicide by causing the death of any person, whose death he neither intends nor knows himself to be likely to cause, the culpable homicide committed by the offender is of the description of which it would have been if he had caused the death of the person whose death he intended or knew himself to be likely to cause.
Bharatiya Nyaya Sanhita, 2023
Section 102: Culpable homicide by causing death of person other than person whose death was intended
Chapter VI — Of Offences Affecting the Human Body
Source: official text of the Bharatiya Nyaya Sanhita, 2023 (Ministry of Home Affairs).