They fought against Midian, as the LORD commanded Moses, and killed every man. ... The Israelites captured the Midianite women and children and took all the Midianite herds, flocks and goods as plunder. 1They burned all the towns where the Midianites had settled, as well as all their camps. They took all the plunder and spoils, including the people and animals, and brought the captives, spoils and plunder to Moses and Eleazar the priest and the Israelite assembly at their camp on the plains of Moab, by the Jordan across from Jericho. ... Moses was angry with the officers of the armythe commanders of thousands and commanders of hundredswho returned from the battle.
"Have you allowed all the women to live?" he asked them. 1"They were the ones who followed Balaam's advice and were the means of turning the Israelites away from the LORD in what happened at Peor, so that a plague struck the LORD's people. Now kill all the boys. And kill every woman who has slept with a man, but save for yourselves every girl who has never slept with a man.