Numbers.
Chapter 31.
The Lord told Moses, 
“Punish the Midianites because of what they did to the Israelites. After that you will join your forefathers in death.” 
Moses instructed the people, “Have some of your men get ready for battle, so they can go and attack the Midianites and carry out the Lord's punishment on them. 
You are to contribute one thousand men from each Israelite tribe.” 
So one thousand men were chosen from each Israelite tribe, making twelve thousand troops ready for battle. 
Moses sent them into battle, one thousand from each tribe, together with Phinehas, son of Eleazar the priest. He carried with him the holy objects from the sanctuary and the trumpets used for giving signals. 
They attacked the Midianites, as the Lord had told Moses to do, and they killed all the men. 
Among those killed were the five kings of Midian, Evi, Rekem, Zur, Hur, and Reba. They also killed Balaam, son of Beor, with the sword. 
The Israelites captured the Midianite women and children, and they took as plunder all their herds, flocks, and possessions. 
They set fire to all the Midianite towns and camps where they had lived, 
and carried away all the plunder and loot, including people and animals. 
They brought the prisoners, loot, and plunder to Moses, to Eleazar the priest, and to the rest of the Israelites where they were camped on the plains of Moab, beside the Jordan opposite Jericho. 
Moses, Eleazar the priest, and all the Israelite leaders went out of the camp to meet them. 
Moses was angry with the army officers, the commanders of thousands and commanders of hundreds, who returned from the battle. 
“Why did you let all the women live?” he asked them. 
“You realize that these were the same women who seduced the Israelite men, leading them to be unfaithful to the Lord at Peor, following Balaam's advice! That's why the Lord's people suffered from the plague! 
So go and kill all the boys, and every woman who has slept with a man. 
Let all the girls who are virgins live. They are yours. 
All those of you who killed someone or touched a dead body must stay outside the camp for seven days. Purify yourselves and your prisoners on the third day and the seventh day. 
Also purify all your clothing and anything made of leather, goat's hair, or wood.” 
Eleazar the priest told the soldiers who had gone into battle, “These are the legal regulations that the Lord has ordered Moses to be carried out: 
All that's made of gold, silver, bronze, iron, tin, and lead— 
anything that doesn't burn—must be put through fire to make it clean. But it still has to be purified using water of purification. Anything that burns must be put through the water. 
Wash your clothes on the seventh day and you will be clean. Then you can enter the camp.” 
The Lord told Moses, 
“You, Eleazar the priest, and the Israelite family leaders are to take a record of the people and animals that were captured. 
Then divide them between the troops who went into battle and the rest of the Israelites. 
Take as a contribution to the Lord from what is allocated to the troops who went into battle one out of every five hundred people, cattle, donkeys, or sheep. 
Take this from their half share and give it to Eleazar the priest as an offering to the Lord. 
From the Israelites half share, take one out of every fifty people, cattle, donkeys, or sheep, or other animals, and give them to the Levites who take care of the Lord's Tabernacle.” 
Moses and Eleazar the priest did as the Lord had ordered Moses. 
This was the list of plunder remaining that had been looted by the troops: 675,000 sheep, 
72,000 cattle, 
61,000 donkeys, 
and 32,000 virgins. 
This was the half share for those who had gone to fight: 337,500 sheep, 
with a contribution for the Lord of 675, 
36,000 cattle, with a Lord's contribution of 72, 
30,500 donkeys, with a Lord's contribution of 61, 
and 16,000 people, with a Lord's contribution of 32. 
Moses gave the contribution to Eleazar the priest as an offering to the Lord as the Lord had ordered Moses. 
The Israelites' half share left after Moses had given the half share to the troops who had gone to fight, 
consisted of: 337,500 sheep, 
36,000 cattle, 
30,500 donkeys, 
and 16,000 people. 
Moses took from the Israelites' half one out of every fifty people and animals and gave them to the Levites who take care of the Lord's Tabernacle, as the Lord had ordered him. 
The army officers, the commanders of thousands and commanders of hundreds, came to Moses 
and told him, “We, your servants, have checked the troops we command and not a single man is missing. 
So we have brought the Lord an offering of the gold objects each man received—armlets, bracelets, rings, earrings, and necklaces—in order that we may be right before the Lord.” 
Moses and Eleazar the priest accepted from them all the objects made out of gold. 
The gold that the commanders of thousands and of hundreds gave as an offering to the Lord weighed in total 16,750 shekels. 
(The men who had fought in the battle had each taken plunder for himself.) 
Moses and Eleazar the priest accepted the gold from the commanders of thousands and of hundreds and took it into the Tent of Meeting as a memorial offering for the Israelites in the presence of the Lord. 
