How the Lord was Avenged on the Midianites
Moses said to the people, “Arm yourselves for war!” And they made war against the Midianites, as the Lord commanded Moses, and slaughtered all the males. They killed the kings of Midian, and captured all the women with their little ones, and took all their cattle and flocks, and all their goods.
And they burned all their cities and fine castles to the ground, and brought the prisoners to Moses.
But Moses was angry with the generals. He said to them, “Why have you saved the women alive? Now kill every little boy and every woman who isn’t a virgin. Just keep the women children for yourselves.”
Then the Lord said to Moses, “Divide the spoils between the soldiers and the congregation, and from the soldiers half, take one part in fifty for me.” And the booty was 675,000 sheep, 12,060 cows, 1,060 asses and 32,000 virgins, and the Lord’s portion was 675 sheep, 72 cows, 31 asses and 32 virgins.
— Numbers 31