Numbers 31:10-18 New American Standard Bible (NASB)
10 Then they burned all their cities where they lived and all their camps with fire. 11 They took all the spoil and all the prey, both of man and of beast. 12 They brought the captives and the prey and the spoil to Moses, and to Eleazar the priest and to the congregation of the sons of Israel, to the camp at the plains of Moab, which are by the Jordan opposite Jericho.
13 Moses and Eleazar the priest and all the leaders of the congregation went out to meet them outside the camp. 14 Moses was angry with the officers of the army, the captains of thousands and the captains of hundreds, who had come from service in the war. 15 And Moses said to them, “Have you [a]spared all the women? 16 Behold, these [b]caused the sons of Israel, through the [c]counsel of Balaam, to [d]trespass against the Lord in the matter of Peor, so the plague was among the congregation of the Lord. 17 Now therefore, kill every male among the little ones, and kill every woman who has known man [e]intimately. 18 But all the [f]girls who have not known man [g]intimately, [h]spare for yourselves.
Numbers 31:10-18 New International Version (NIV)
10 They burned all the towns where the Midianites had settled, as well as all their camps. 11 They took all the plunder and spoils, including the people and animals, 12 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.
13 Moses, Eleazar the priest and all the leaders of the community went to meet them outside the camp. 14 Moses was angry with the officers of the army—the commanders of thousands and commanders of hundreds—who returned from the battle.
15 “Have you allowed all the women to live?” he asked them. 16 “They were the ones who followed Balaam’s advice and enticed the Israelites to be unfaithful to the Lord in the Peor incident, so that a plague struck the Lord’s people. 17 Now kill all the boys. And kill every woman who has slept with a man, 18 but save for yourselves every girl who has never slept with a man.