New International Version
23 If a man happens to meet in a town a virgin pledged to be married and he sleeps with her, 24 you shall take both of them to the gate of that town and stone them to death—the young woman because she was in a town and did not scream for help, and the man because he violated another man’s wife. You must purge the evil from among you.(A)
25 But if out in the country a man happens to meet a young woman pledged to be married and rapes her, only the man who has done this shall die. 26 Do nothing to the woman; she has committed no sin deserving death. This case is like that of someone who attacks and murders a neighbor, 27 for the man found the young woman out in the country, and though the betrothed woman screamed,(B) there was no one to rescue her.