Deuteronomy 22:23-27New Revised Standard Version (NRSV)
23 If there is a young woman, a virgin already engaged to be married, and a man meets her in the town and lies with her, 24 you 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.
25 But 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. 26 You 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. 27 Since he found her in the open country, the engaged woman may have cried for help, but there was no one to rescue her.