Deuteronomy 22:24-27 New American Bible, Revised Edition (NABRE)

24. you shall bring them both out to the gate of the city and there stone them to death: the young woman because she did not cry out though she was in the city, and the man because he violated his neighbor’s wife. Thus shall you purge the evil from your midst.

25. But if it is in the open fields that a man comes upon the betrothed young woman, seizes her and lies with her, only the man who lay with her shall die.

26. You shall do nothing to the young woman, since the young woman is not guilty of a capital offense. As when a man rises up against his neighbor and murders him, so in this case:

27. it was in the open fields that he came upon her, and though the betrothed young woman may have cried out, there was no one to save her.

Deuteronomy 22