Deut 22:22-27

22If a man is caught lying with the wife of another man, both of them shall die, the man who lay with the woman as well as the woman. So you shall purge the evil from Israel.23If there is a young woman, a virgin already engaged to be married, and a man meets her in the town and lies with her,24you shall bring both of them to the gate of that town and stone them to death, the young woman because she did not cry for help in the town and the man because he violated his neighbor's wife. So you shall purge the evil from your midst.25But if the man meets the engaged woman in the open country, and the man seizes her and lies with her, then only the man who lay with her shall die.26You shall do nothing to the young woman; the young woman has not committed an offense punishable by death, because this case is like that of someone who attacks and murders a neighbor.27Since he found her in the open country, the engaged woman may have cried for help, but there was no one to rescue her.