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: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.