22 If a man be found lying with a woman married to a husband, then they shall both of them die, the man that lay with the woman, and the woman: so shalt thou put away the evil from Israel. 23 If there be a damsel that is a virgin betrothed unto a husband, and a man find her in the city, and lie with her; 24 then ye shall bring them both out unto the gate of that city, and ye shall stone them to death with stones; the damsel, because she cried not, being in the city; and the man, because he hath humbled his neighbor's wife: so thou shalt put away the evil from the midst of thee.

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.