Numbers 31
7 Ref And they made war on Midian, as the Lord gave orders to Moses; and they put to death every male.
8 Ref They put the kings of Midian to death with the rest, Evi and Reken and Zur and Hur and Reba, the five kings of Midian: and Balaam, the son of Beor, they put to death with the sword.
9 Ref The women of Midian with their little ones the children of Israel took prisoner; and all their cattle and flocks and all their goods they took for themselves;
10 Ref And after burning all their towns and all their tent-circles,
11 Ref They went away with the goods they had taken, man and beast.
12 Ref And the prisoners and the goods and everything they had taken, they took to Moses and Eleazar the priest and the people of Israel, to the tent-circle in the lowlands of Moab by the Jordan at Jericho.
13 Ref Then Moses and Eleazar the priest and the chiefs of the people went out to them before they had come into the tent-circle.
14 Ref And Moses was angry with the chiefs of the army, the captains of thousands and the captains of hundreds who had come back from the war.
15 Ref And Moses said to them, Why have you kept all the women safe?
16 Ref It was these who, moved by Balaam, were the cause of Israel's sin against the Lord in the question of Peor, because of which disease came on the people of the Lord.
17 Ref So now put every male child to death, and every woman who has had sex relations with a man.
18 Ref But all the female children who have had no sex relations with men, you may keep for yourselves.