The LORD spoke to Moses,
"Execute vengeance for the Israelites against the Midianites. After that, you will be gathered to your people."
So Moses spoke to the people, "Equip some of your men for war. They will go against Midian to inflict the LORD's vengeance on them.
Send 1,000 men to war from each Israelite tribe."
So 1,000 were recruited from each Israelite tribe out of the thousands in Israel-- 12,000 equipped for war.
Moses sent 1,000 from each tribe to war. They went with Phinehas son of Eleazar the priest, in whose care were the holy objects and signal trumpets.
They waged war against Midian, as the LORD had commanded Moses, and killed every male.
Along with the others slain by them, they killed the Midianite kings-- Evi, Rekem, Zur, Hur, and Reba, the five kings of Midian. They also killed Balaam son of Beor with the sword.
The Israelites took the Midianite women and their children captive, and they plundered all their cattle, flocks, and property.
Then they burned all the cities where the Midianites lived, as well as all their encampments,
and took away all the spoils of war and the captives, both human and animal.
They brought the prisoners, animals, and spoils of war to Moses, Eleazar the priest, and the Israelite community at the camp on the plains of Moab by the Jordan [across from] Jericho.
Moses, Eleazar the priest, and all the leaders of the community went to meet them outside the camp.
But Moses became furious with the officers, the commanders of thousands and commanders of hundreds, who were returning from the military campaign.
"Have you let every female live?" he asked them.
"Yet they are the ones who, at Balaam's advice, incited the Israelites to unfaithfulness against the LORD in the Peor incident, so that the plague came against the LORD's community.
So now, kill all the male children and kill every woman who has had sexual relations with a man,
but keep alive for yourselves all the young females who have not had sexual relations.
"You are to remain outside the camp for seven days. All of you and your prisoners who have killed a person or touched the dead are to purify yourselves on the third day and the seventh day.
Also purify everything: garments, leather goods, things made of goat hair, and every article of wood."
Then Eleazar the priest said to the soldiers who had gone to battle, "This is the legal statute the LORD commanded Moses:
Only the gold, silver, bronze, iron, tin, and lead--
everything that can withstand fire-- put through fire, and it will be clean. It must still be purified with the purification water. Anything that cannot withstand fire, put through the water.
On the seventh day wash your clothes, and you will be clean. After that you may enter the camp."
"You, Eleazar the priest, and the family leaders of the community are to take a count of what was captured, human and animal.
Then divide the captives between the troops who went out to war and the entire community.
Set aside a tribute for the LORD from what belongs to the fighting men who went out to war: one out of [every] 500 humans, cattle, donkeys, sheep, and goats.
Take [the tribute] from their half and give [it] to Eleazar the priest as a contribution to the LORD.
From the Israelites' half, take one out of every 50 from the people, cattle, donkeys, sheep, and goats, all the livestock, and give them to the Levites who perform the duties of the LORD's tabernacle."
So Moses and Eleazar the priest did as the LORD commanded Moses.
The captives remaining from the plunder the army had taken totaled: 675,000 sheep and goats,
and 32,000 people, all the females who had not had sexual relations with a man.
The half portion for those who went out to war numbered: 337,500 sheep and goats,
and the tribute to the LORD was 675 from the sheep and goats;
from the 36,000 cattle, the tribute to the LORD was 72;
from the 30,500 donkeys, the tribute to the LORD was 61;
and from the 16,000 people, the tribute to the LORD was 32 people.
Moses gave the tribute to Eleazar the priest as a contribution for the LORD, as the LORD had commanded Moses.
From the Israelites' half, which Moses separated from the men who fought,
the community's half was: 337,500 sheep and goats,
Moses took one out of [every] 50, selected from the people and the livestock from the Israelites' half. He gave them to the Levites who perform the duties of the LORD's tabernacle, as the LORD had commanded him.
The officers who were over the thousands of the army, the commanders of thousands and of hundreds, approached Moses
and told him, "Your servants have taken a census of the fighting men under our command, and not one of us is missing.
So we have presented to the LORD an offering of the gold articles each man found-- armlets, bracelets, rings, earrings, and necklaces-- to make atonement for ourselves before the LORD."
Moses and Eleazar the priest received from them all the articles made out of gold.
All the gold of the contribution they offered to the Lord, from the commanders of thousands and of hundreds, was 420 pounds.
Each of the soldiers had taken plunder for himself.
Moses and Eleazar the priest received the gold from the commanders of thousands and of hundreds and brought it into the tent of meeting as a memorial for the Israelites before the LORD.