Numbers 31:2-3

2 aAvenge the people of Israel on the Midianites. Afterward you shall bbe gathered to your people.” 3So 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.
Copyright information for ESV