22 "If a man is discovered committing adultery, both he and the woman must die. In this way, you will purge Israel of such evil. 23 "Suppose a man meets a young woman, a virgin who is engaged to be married, and he has sexual intercourse with her. If this happens within a town, 24 you must take both of them to the gates of that town and stone them to death. The woman is guilty because she did not scream for help. The man must die because he violated another man's wife. In this way, you will purge this evil from among you.
Matthew Henry's Commentary on Deuteronomy 22:22-24
Commentary on Deuteronomy 22:13-30
(Read Deuteronomy 22:13-30)
These and the like regulations might be needful then, and yet it is not necessary that we should curiously examine respecting them. The laws relate to the seventh commandment, laying a restraint upon fleshly lusts which war against the soul.