Then the LORD spoke to Moses, saying, “Take full vengeance for the sons of Israel on the Midianites; afterward you will be gathered to your people.” Moses spoke to the people, saying, “Arm men from among you for the war, that they may go against Midian to execute the LORD’S vengeance on Midian. A thousand from each tribe of all the tribes of Israel you shall send to the war.” So there were furnished from the thousands of Israel, a thousand from each tribe, twelve thousand armed for war. Moses sent them, a thousand from each tribe, to the war, and Phinehas the son of Eleazar the priest, to the war with them, and the holy vessels and the trumpets for the alarm in his hand. So they made war against Midian, just as the LORD had commanded Moses, and they killed every male. They killed the kings of Midian along with the rest of their slain: Evi and Rekem and Zur and Hur and Reba, the five kings of Midian; they also killed Balaam the son of Beor with the sword. The sons of Israel captured the women of Midian and their little ones; and all their cattle and all their flocks and all their goods they plundered. Then they burned all their cities where they lived and all their camps with fire. They took all the spoil and all the prey, both of man and of beast. They brought the captives and the prey and the spoil to Moses, and to Eleazar the priest and to the congregation of the sons of Israel, to the camp at the plains of Moab, which are by the Jordan opposite Jericho.
Moses and Eleazar the priest and all the leaders of the congregation went out to meet them outside the camp. Moses was angry with the officers of the army, the captains of thousands and the captains of hundreds, who had come from service in the war. And Moses said to them, “Have you spared all the women? Behold, these caused the sons of Israel, through the counsel of Balaam, to trespass against the LORD in the matter of Peor, so the plague was among the congregation of the LORD. Now therefore, kill every male among the little ones, and kill every woman who has known man intimately. But all the girls who have not known man intimately, spare for yourselves. And you, camp outside the camp seven days; whoever has killed any person and whoever has touched any slain, purify yourselves, you and your captives, on the third day and on the seventh day. You shall purify for yourselves every garment and every article of leather and all the work of goats’ hair, and all articles of wood.”
Then Eleazar the priest said to the men of war who had gone to battle, “This is the statute of the law which the LORD has commanded Moses: only the gold and the silver, the bronze, the iron, the tin and the lead, everything that can stand the fire, you shall pass through the fire, and it shall be clean, but it shall be purified with water for impurity. But whatever cannot stand the fire you shall pass through the water. And you shall wash your clothes on the seventh day and be clean, and afterward you may enter the camp.”