13 And Moses, Eleazar the priest, and all the leaders of the congregation, went to meet them outside the camp. 14 But Moses was angry with the officers of the army, with the captains over thousands and captains over hundreds, who had come from the battle. 15 And Moses said to them: "Have you kept all the women alive? 16 Look, these women caused the children of Israel, through the counsel of Balaam, to trespass against the Lord in the incident of Peor, and there was a plague among the congregation of the Lord. 17 Now therefore, kill every male among the little ones, and kill every woman who has known a man intimately. 18 But keep alive for yourselves all the young girls who have not known a man intimately.

Matthew Henry's Commentary on Numbers 31:13-18

Commentary on Numbers 31:13-18

(Read Numbers 31:13-18)

The sword of war should spare women and children; but the sword of justice should know no distinction, but that of guilty or not guilty. This war was the execution of a righteous sentence upon a guilty nation, in which the women were the worst criminals. The female children were spared, who, being brought up among the Israelites, would not tempt them to idolatry. The whole history shows the hatefulness of sin, and the guilt of tempting others; it teaches us to avoid all occasions of evil, and to give no quarter to inward lusts. The women and children were not kept for sinful purposes, but for slaves, a custom every where practised in former times, as to captives. In the course of providence, when famine and plagues visit a nation for sin, children suffer in the common calamity. In this case parents are punished in their children; and for children dying before actual sin, full provision is made as to their eternal happiness, by the mercy of God in Christ.