21 then they shall bring out the young woman to the door of her father's house, and the men of her city shall stone her to death with stones, because she has done an outrageous thing in Israel by whoring in her father's house. So you shall purge the evil from your midst.

Matthew Henry's Commentary on Deuteronomy 22:21

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.