Deuteronomy 22:22-24

22 "If a man is caught having intercourse with another man's wife, both of them are to be put to death. In this way you will get rid of this evil.
23 "Suppose a man is caught in a town having intercourse with a young woman who is engaged to someone else.
24 You are to take them outside the town and stone them to death. She is to die because she did not cry out for help, although she was in a town, where she could have been heard. And the man is to die because he had intercourse with someone who was engaged. In this way you will get rid of this evil.

Deuteronomy 22:22-24 Meaning and Commentary

INTRODUCTION TO DEUTERONOMY 22

In this chapter are various laws, concerning care of a neighbour's cattle gone astray or in distress, and of anything lost by him, De 22:1-4, forbidding one sex to wear the apparel, of another, De 22:5 and the taking away of the dam with the young found in a bird's nest, De 22:6,7, ordering battlements to be made in a new house, De 22:8, prohibiting mixtures in sowing, ploughing, and in garments, De 22:9-11, requiring fringes on the four quarters of a garment, De 22:12, fining a man that slanders his wife, upon producing the tokens of her virginity, De 22:13-19 but if these cannot be produced, then orders are given that she be put to death, De 22:20-21, then follow other laws, punishing with death the adulterer and adulteress, and one that hath ravished a betrothed damsel, De 22:22-27, amercing a person that lies with a virgin not betrothed and she consenting, and obliging him to marry her, and not suffering him to divorce her, De 22:28-29 and another against a man's lying with his father's wife, De 22:30.

Scripture taken from the Good News Translation - Second Edition, Copyright 1992 by American Bible Society. Used by Permission.