NumbersChapter 31

"Take vengeance for the Israelites on the Midianites. After that you will be gathered to your people."
So Moses said to the people, "Arm some of your men for war, so they can go against Midian and carry out the LORD's vengeance on Midian.
Send a thousand men to war from each of the tribes of Israel."
So from the clans of Israel a thousand were enlisted from each tribe—twelve thousand men armed for war.
Moses sent them out to war, a thousand from each tribe, along with Phinehas son of Eleazar the priest, who took with him the holy vessels and the trumpets for sounding the alarm.
Among the slain were the kings of Midian: Evi, Rekem, Zur, Hur, and Reba—the five kings of Midian. They also put Balaam son of Beor to the sword.
The Israelites took the women of Midian and their children captive, and they plundered all their herds, all their flocks, and all their goods.
and brought the captives, the plunder, and the spoil to Moses, to Eleazar the priest, and to the assembly of the Israelites at the camp on the plains of Moab, by the Jordan across from Jericho.
But Moses was angry with the officers of the army—the commanders of thousands and the commanders of hundreds—who were returning from the campaign.
"These were the very ones who followed Balaam's advice and enticed the Israelites to be unfaithful to the LORD in the affair at Peor, so that a plague struck the LORD's assembly.
As for you, stay outside the camp for seven days. Everyone who has killed a person or touched a dead body must purify himself on the third day and on the seventh day, both you and your captives.
Then Eleazar the priest said to the soldiers who had gone into battle, "This is the requirement of the law that the LORD gave Moses:
anything that can withstand fire you must put through the fire, and it will be clean. But it must also be purified with the water of cleansing. And whatever cannot withstand fire you must pass through the water.
"You, Eleazar the priest, and the family heads of the assembly are to count all that was captured, both people and livestock.
From the soldiers who went into battle, set apart as a tribute for the LORD one out of every five hundred—of the people, the cattle, the donkeys, and the sheep and goats.
From the Israelites' half, take one out of every fifty—of the people, the cattle, the donkeys, the sheep and goats, all the livestock—and give them to the Levites, who are charged with the care of the LORD's tabernacle."
The plunder remaining from the spoil taken by the fighting men was 675,000 sheep and goats,
61,000 donkeys,
The half belonging to those who had gone to war came to 337,500 sheep and goats,
30,500 donkeys, of which the tribute for the LORD was 61;
Then there was the Israelites' half, which Moses had divided off from the share of the fighting men:
The assembly's half came to 337,500 sheep and goats,
From the Israelites' half Moses took one out of every fifty, both of the people and of the livestock, and gave them to the Levites, who were charged with the care of the LORD's tabernacle, as the LORD had commanded Moses.
and said to him, "Your servants have counted the soldiers under our command, and not one man is missing.
So we have brought as an offering to the LORD the gold articles each of us found—armlets, bracelets, signet rings, earrings, and pendants—to make atonement for ourselves before the LORD."
All the gold that the commanders of thousands and the commanders of hundreds presented to the LORD came to sixteen thousand seven hundred and fifty shekels.
Moses and Eleazar the priest took 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.