The LORD spoke to Moses:
Take just reparations for the Israelites from the Midianites. Afterward you will join your ancestors.
Moses spoke to the people: "Equip some of your men for battle so that they may go against Midian and execute the LORD's just punishment against Midian.
You will send out for battle one thousand from each of the tribes of Israel."
From the thousands of Israel, one thousand from each tribe were selected. Twelve thousand were equipped for battle.
Moses sent them to battle, one thousand from each tribe, along with Phinehas, Eleazar the priest's son, who carried the sanctuary equipment and the trumpets for sounding the alarm in his hand.
They battled against Midian as the LORD had commanded Moses, and they killed every male.
They killed the kings of Midian: Evi, Rekem, Zur, Hur, and Reba, the five kings of Midian, along with others slain. They also killed Balaam, Beor's son, with the sword.
The Israelites took captive the Midianite women, their little ones, all their cattle, their herds, and their possessions.
They burned all the cities where they lived and their encampments.
They took all the spoils of war and the valuable property, both human and animal,
and they brought the captives, the valuable property, and the spoils of war to Moses, Eleazar the priest, and the Israelite community, at the camp on the plains of Moab by the Jordan across from Jericho.