Numbers 31:1-2; Numbers 31:16
The LORD said to Moses,
"Take vengeance on the Midianites for the Israelites. After that, you will be gathered to your people."
"They were the ones who followed Balaam's advice and were the means of turning the Israelites away from the LORD in what happened at Peor, so that a plague struck the LORD's people.