Deuteronomy 22:23-25
22:23 If a virgin is engaged to a man and another man meets her in the city and has sexual relations with her,
22:24 you must bring the two of them to the gate of that city and stone them to death, the young woman because she did not cry out though in the city and the man because he violated his neighbor’s fiancĂ©e; in this way you will purge evil from among you.
22:25 But if the man came across the engaged woman in the field and overpowered her and raped her, then only the rapist must die.