Kautilya,
Arthashastra — Book IV, "The Removal of Thorns"
“ When a person commits rape with a captive, slave, or hired woman in lock-up, he shall be punished with the first amercement; when he commits rape with the wife of a thief, or of any other man who is dead in an epidemic (dámara) , he shall be punished with the middlemost amercement; and when he commits rape with an Arya woman in lock-up, he shall be punished with the highest amercement.When an offender kept in lock-up commits rape with an Arya woman in the same lock-up, he shall be condemned to death in the very place. ”
