13 Moses, the priest Eleazar, and all the leaders of the community went outside the camp to meet them.
14 Moses was angry with the officers of the army, the commanders of the companies and battalions, who were returning from battle.
15 “Why did you let all the women live?” he asked them.
16 “Remember, they were the ones who followed Balaam’s advice and caused the Israelites to be unfaithful to the Lord in the incident that took place at Peor. The Lord’s community experienced a plague at that time.
17 So kill all the Midianite boys and every Midianite woman who has gone to bed with a man.
18 But save for yourselves every girl who has never gone to bed with a man.
19 “Everyone who killed a person or touched a dead body must stay outside the camp seven days. You and your prisoners of war must use the ritual water on the third and seventh days in order to take away your sin.