Numbers 31:1-6
The Midianite War
31:1 The Lord spoke to Moses:
31:2 “Exact vengeance for the Israelites on the Midianites – after that you will be gathered to your people.”
31:3 So Moses spoke to the people: “Arm men from among you for the war, to attack the Midianites and to execute the Lord’s vengeance on Midian.
31:4 You must send to the battle a thousand men from every tribe throughout all the tribes of Israel.”
31:5 So a thousand from every tribe, twelve thousand armed for battle in all, were provided out of the thousands of Israel.
Campaign Against the Midianites
31:6 So Moses sent them to the war, one thousand from every tribe, with Phinehas son of Eleazar the priest, who was in charge of the holy articles and the signal trumpets.