1The LORD spoke to Moses: 2“Avenge the Israelites on the Midianites. Afterward you will be gathered to your people.”
3So Moses told the people, “Arm men from among you for battle. They are to go against Midian to carry out the LORD’s vengeance on Midian. 4Send a thousand from each tribe into battle, a thousand from every tribe of Israel.”
5So a thousand from each tribe were drawn from the thousands of Israel, twelve thousand armed for battle. 6Moses sent them into battle, a thousand from each tribe. He sent Phinehas son of Eleazar the priest with them. Phinehas carried the holy articles and the trumpets for sounding the signal. 7They fought against Midian, as the LORD had commanded Moses, and killed every male. 8In addition to the others they struck down, they killed the five kings of Midian: Evi, Rekem, Zur, Hur, and Reba. They also killed Balaam son of Beor with the sword.
9The Israelites took the Midianite women and their children captive and plundered all their animals, all their livestock, and all their wealth. 10They burned down all the towns where the Midianites lived and all their encampments. 11They took all the spoil and everything they had seized, both people and animals. 12They brought the captives, the animals they had seized, and the spoil to Moses, Eleazar the priest, and the Israelite congregation at the camp on the plains of Moab, by the Jordan across from Jericho.
13Moses, Eleazar the priest, and all the leaders of the congregation went outside the camp to meet them. 14Moses was angry with the officers of the army, the commanders of thousands and the commanders of hundreds who were returning from battle.
15Moses said to them, “Have you let all the women live? 16Look, these are the very women who, at Balaam’s advice, led the Israelites to act unfaithfully against the LORD in the matter of Peor, so that the plague broke out in the LORD’s congregation. 17Now kill every boy among the children, and kill every woman who has slept with a man. 18But spare for yourselves all the girls who have not slept with a man.
19“As for you, stay outside the camp for seven days. Everyone who has killed someone or touched a slain person must purify themselves on the third day and on the seventh day, both you and your captives. 20Purify every garment, every leather article, everything made from goats, and every wooden article.”
21Eleazar the priest said to the men who had gone into battle, “This is the statute of the law that the LORD commanded Moses: 22But as for the gold, silver, bronze, iron, tin, and lead— 23anything that can withstand fire you shall pass through the fire, and it will be clean. It must still be purified with the water for impurity. Whatever cannot withstand fire you shall pass through water. 24Wash your clothes on the seventh day, and you will be clean. Afterward you may enter the camp.”
25The LORD said to Moses: 26“Count the captives and the animals seized—you, Eleazar the priest, and the heads of the congregation’s ancestral households. 27Divide what was seized into two halves, one for the warriors who went into battle and one for the whole congregation. 28Take a levy for the LORD from the warriors who went into battle: one out of every five hundred in each category: the people, the cattle, the donkeys, and the sheep and goats. 29Take it from their half and give it to Eleazar the priest as the LORD’s contribution. 30From the Israelites’ half take one out of every fifty in each category: the people, the cattle, the donkeys, and the sheep and goats—from all the animals. Give them to the Levites who are responsible for the LORD’s tabernacle.” 31Moses and Eleazar the priest did as the LORD had commanded Moses.
32The captives and animals that remained from what the troops had plundered numbered 675,000 sheep and goats, 3372,000 cattle, 3461,000 donkeys, 35and 32,000 people in all, women who had not slept with a man.
36This was the half allotted to those who went into battle: 337,500 sheep and goats, 37of which the levy for the LORD was 675; 3836,000 cattle, of which the levy for the LORD was 72; 3930,500 donkeys, of which the levy for the LORD was 61; 40and 16,000 people, of whom the levy for the LORD was 32. 41Moses gave the levy, the LORD’s contribution, to Eleazar the priest, as the LORD had commanded Moses.
42As for the Israelites’ half, which Moses had set apart from the share of the men who fought, 43the congregation’s half was 337,500 sheep and goats, 4436,000 cattle, 4530,500 donkeys, 46and 16,000 people. 47From the Israelites’ half Moses took one out of every fifty in each category, both people and animals, and gave them to the Levites who were responsible for the LORD’s tabernacle, as the LORD had commanded Moses.
48The officers over the thousands of the army, the commanders of thousands and the commanders of hundreds, came to Moses. 49They said to him, “Your servants have counted the warriors under our command, and not one of us is missing. 50So we have brought an offering for the LORD, each man bringing the gold articles he found—armlets, bracelets, rings, earrings, and pendants—to make atonement for our lives before the LORD.” 51Moses and Eleazar the priest took the gold from them, all of it in crafted pieces. 52The gold that the commanders of thousands and the commanders of hundreds contributed to the LORD weighed 16,750 shekels in all. 53The soldiers had taken plunder, each for himself. 54Moses 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.