1 Then the LORD said to Moses,
2 "Take vengeance on the Midianites for leading the Israelites into idolatry. After that, you will die and join your ancestors."
3 So Moses said to the people, "Choose some men to fight the LORD's war of vengeance against Midian.
4 From each tribe of Israel, send one thousand men into battle."
5 So they chose one thousand men from each tribe of Israel, a total of twelve thousand men armed for battle.
6 Then Moses sent them out, a thousand men from each tribe, and Phinehas son of Eleazar the priest led them into battle. They carried along the holy objects of the sanctuary and the trumpets for sounding the charge.
7 They attacked Midian just as the LORD had commanded Moses, and they killed all the men.
8 All five of the Midianite kings--Evi, Rekem, Zur, Hur, and Reba--died in the battle. They also killed Balaam son of Beor with the sword.
9 Then the Israelite army captured the Midianite women and children and seized their cattle and flocks and all their wealth as plunder.
10 They burned all the towns and villages where the Midianites had lived.
11 After they had gathered the plunder and captives, both people and animals,
12 they brought them all to Moses and Eleazar the priest, and to the whole community of Israel, which was camped on the plains of Moab beside the Jordan River, across from Jericho.
13 Moses, Eleazar the priest, and all the leaders of the people went to meet them outside the camp.
14 But Moses was furious with all the military commanders* who had returned from the battle.1
15 "Why have you let all the women live?" he demanded.
16 "These are the very ones who followed Balaam's advice and caused the people of Israel to rebel against the LORD at Mount Peor. They are the ones who caused the plague to strike the LORD's people.
17 Now kill all the boys and all the women who have slept with a man.
18 Only the young girls who are virgins may live; you may keep them for yourselves.
19 And all of you who have killed anyone or touched a dead body must stay outside the camp for seven days. You must purify yourselves and your captives on the third and seventh days.
20 Also, purify all your clothing and everything made of leather, goat hair, or wood."
21 Then Eleazar the priest said to the men who were in the battle, "The LORD has given Moses this requirement of the law:
22 Anything made of gold, silver, bronze, iron, tin, or lead--
23 that is, metals that do not burn--must be passed through fire in order to be made ceremonially pure. These metal objects must then be further purified with the water of purification. But everything that burns must be purified by the water alone.
24 On the seventh day you must wash your clothes and be purified. Then you may return to the camp."
25 And the LORD said to Moses,
26 "You and Eleazar the priest and the family leaders of each tribe are to make a list of all the plunder taken in the battle, including the people and animals.
27 Then divide the plunder into two parts, and give half to the men who fought the battle and half to the rest of the people.
28 But first give the LORD his share of the captives, cattle, donkeys, sheep, and goats that belong to the army. Set apart one out of every five hundred as the LORD's share.
29 Give this share of their half to Eleazar the priest as an offering to the LORD.
30 Also take one of every fifty of the captives, cattle, donkeys, sheep, and goats in the half that belongs to the people of Israel. Give this share to the Levites in charge of maintaining the LORD's Tabernacle."
31 So Moses and Eleazar the priest did as the LORD commanded Moses.
32 The plunder remaining from the spoils that the fighting men had taken totaled 675,000 sheep,
33 72,000 cattle,
34 61,000 donkeys,
35 and 32,000 young girls.
36 So the half of the plunder given to the fighting men totaled 337,500 sheep,
37 of which 675 were the LORD's share;
38 36,000 cattle, of which 72 were the LORD's share;
39 30,500 donkeys, of which 61 were the LORD's share;