Then the LORD spoke to Moses, saying,
"Take full vengeance for the sons of Israel on the Midianites; afterward you will be gathered to your people."
Moses spoke to the people, saying, "Arm men from among you for the war, that they may go against Midian to execute the LORD'S vengeance on Midian.
"A thousand from each tribe of all the tribes of Israel you shall send to the war."
So there were furnished from the thousands of Israel, a thousand from each tribe, twelve thousand armed for war.
Moses sent them, a thousand from each tribe, to the war, and Phinehas the son of Eleazar the priest, to the war with them, and the holy vessels and the trumpets for the alarm in his hand.
So they made war against Midian, just as the LORD had commanded Moses, and they killed every male.
They killed the kings of Midian along with the [rest of] their slain: Evi and Rekem and Zur and Hur and Reba, the five kings of Midian; they also killed Balaam the son of Beor with the sword.
The sons of Israel captured the women of Midian and their little ones; and all their cattle and all their flocks and all their goods they plundered.
Then they burned all their cities where they lived and all their camps with fire.
They took all the spoil and all the prey, both of man and of beast.
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.
Moses and Eleazar the priest and all the leaders of the congregation went out to meet them outside the camp.
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.
And Moses said to them, "Have you spared all the women?
"Behold, these caused the sons of Israel, through the counsel of Balaam, to trespass against the LORD in the matter of Peor, so the plague was among the congregation of the LORD.
"Now therefore, kill every male among the little ones, and kill every woman who has known man intimately.
"But all the girls who have not known man intimately, spare for yourselves.
"And you, camp outside the camp seven days; whoever has killed any person and whoever has touched any slain, purify yourselves, you and your captives, on the third day and on the seventh day.
"You shall purify for yourselves every garment and every article of leather and all the work of goats' [hair], and all articles of wood."
Then Eleazar the priest said to the men of war who had gone to battle, "This is the statute of the law which the LORD has commanded Moses:
only the gold and the silver, the bronze, the iron, the tin and the lead,
everything that can stand the fire, you shall pass through the fire, and it shall be clean, but it shall be purified with water for impurity. But whatever cannot stand the fire you shall pass through the water.
"And you shall wash your clothes on the seventh day and be clean, and afterward you may enter the camp."
Then the LORD spoke to Moses, saying,
"You and Eleazar the priest and the heads of the fathers' [households] of the congregation take a count of the booty that was captured, both of man and of animal;
and divide the booty between the warriors who went out to battle and all the congregation.
"Levy a tax for the LORD from the men of war who went out to battle, one in five hundred of the persons and of the cattle and of the donkeys and of the sheep;
take it from their half and give it to Eleazar the priest, as an offering to the LORD.
"From the sons of Israel's half, you shall take one drawn out of every fifty of the persons, of the cattle, of the donkeys and of the sheep, from all the animals, and give them to the Levites who keep charge of the tabernacle of the LORD."
Moses and Eleazar the priest did just as the LORD had commanded Moses.
Now the booty that remained from the spoil which the men of war had plundered was 675,000 sheep,
and of human beings, of the women who had not known man intimately, all the persons were 32,000.
The half, the portion of those who went out to war, was [as follows]: the number of sheep was 337,500,
and the LORD'S levy of the sheep was 675;
and the cattle were 36,000, from which the LORD'S levy was 72;
and the donkeys were 30,500, from which the LORD'S levy was 61;
and the human beings were 16,000, from whom the LORD'S levy was 32 persons.
Moses gave the levy [which was] the LORD'S offering to Eleazar the priest, just as the LORD had commanded Moses.
As for the sons of Israel's half, which Moses separated from the men who had gone to war--
now the congregation's half was 337,500 sheep,
and the human beings were 16,000--
and from the sons of Israel's half, Moses took one drawn out of every fifty, both of man and of animals, and gave them to the Levites, who kept charge of the tabernacle of the LORD, just as the LORD had commanded Moses.
Then the officers who were over the thousands of the army, the captains of thousands and the captains of hundreds, approached Moses,
and they said to Moses, "Your servants have taken a census of men of war who are in our charge, and no man of us is missing.
"So we have brought as an offering to the LORD what each man found, articles of gold, armlets and bracelets, signet rings, earrings and necklaces, to make atonement for ourselves before the LORD."
Moses and Eleazar the priest took the gold from them, all kinds of wrought articles.
All the gold of the offering which they offered up to the LORD, from the captains of thousands and the captains of hundreds, was 16,750 shekels.
The men of war had taken booty, every man for himself.
So Moses and Eleazar the priest took the gold from the captains of thousands and of hundreds, and brought it to the tent of meeting as a memorial for the sons of Israel before the LORD.