Numbers 31:1-16 ESV
The LORD spoke to Moses, saying, “Avenge the people of Israel on the Midianites. Afterward you shall be gathered to your people.” So 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. You shall send a thousand from each of the tribes of Israel to the war.” So there were provided, out of the thousands of Israel, a thousand from each tribe, twelve thousand armed for war. And Moses sent them to the war, a thousand from each tribe, together with Phinehas the son of Eleazar the priest, with the vessels of the sanctuary and the trumpets for the alarm in his hand. They warred against Midian, as the LORD commanded Moses, and killed every male. They killed the kings of Midian with the rest of their slain, Evi, Rekem, Zur, Hur, and Reba, the five kings of Midian. And they also killed Balaam the son of Beor with the sword. And the people of Israel took captive the women of Midian and their little ones, and they took as plunder all their cattle, their flocks, and all their goods. All their cities in the places where they lived, and all their encampments, they burned with fire, and took all the spoil and all the plunder, both of man and of beast. Then they brought the captives and the plunder and the spoil to Moses, and to Eleazar the priest, and to the congregation of the people of Israel, at the camp on the plains of Moab by the Jordan at Jericho. Moses and Eleazar the priest and all the chiefs of the congregation went to meet them outside the camp. And Moses was angry with the officers of the army, the commanders of thousands and the commanders of hundreds, who had come from service in the war. Moses said to them, “Have you let all the women live? Behold, these, on Balaam’s advice, caused the people of Israel to act treacherously against the LORD in the incident of Peor, and so the plague came among the congregation of the LORD.