23 If a man comes upon a virgin in town, a girl who is engaged to another man, and sleeps with her, 24 take both of them to the town gate and stone them until they die - the girl because she didn't yell out for help in the town and the man because he raped her, violating the fiancZe of his neighbor. You must purge the evil from among you. 25 But if it was out in the country that the man found the engaged girl and grabbed and raped her, only the man is to die, the man who raped her. 26 Don't do anything to the girl; she did nothing wrong. This is similar to the case of a man who comes across his neighbor out in the country and murders him; 27 when the engaged girl yelled out for help, there was no one around to hear or help her. 28 When a man comes upon a virgin who has never been engaged and grabs and rapes her and they are found out,

Matthew Henry's Commentary on Deuteronomy 22:23-28

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.