7 They attacked Midian, just as God had commanded Moses, and killed every last man. 8 Among the fallen were Evi, Rekem, Zur, Hur, and Reba - the five kings of Midian. They also killed Balaam son of Beor with the sword. 9 The People of Israel took the Midianite women and children captive and took all their animals and herds and goods as plunder. 10 They burned to the ground all the towns in which Midianites lived and also their tent camps. 11 They looted and plundered everything and everyone - stuff and people and animals. 12 They took it all - captives and booty and plunder - back to Moses and Eleazar the priest and the company of Israel where they were camped on the Plains of Moab, at Jordan-Jericho.

13 Moses, Eleazar, and all the leaders of the congregation went to meet the returning army outside the camp. 14 Moses was furious with the army officers - the commanders of thousands and commanders of hundreds - as they came back from the battlefield: 15 "What's this! You've let these women live! 16 They're the ones who, under Balaam's direction, seduced the People of Israel away from God in that mess at Peor, causing the plague that hit God's people. 17 Finish your job: kill all the boys. Kill every woman who has slept with a man. 18 The younger women who are virgins you can keep alive for yourselves.

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

Commentary on Numbers 31:7-12

(Read Numbers 31:7-12)

The Israelites slew the Kings of Midian. They slew Balaam. God's overruling providence brought him thither, and their just vengeance found him. Had he himself rightly believed what he had said of the happy state of Israel, he would not have thus herded with the enemies of Israel. The Midianites' wicked wiles were Balaam's projects: it was just that he should perish with them, Hosea 4:5. They took the women and children captives. They burnt their cities and castles, and returned to the camp.

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.