Numbers 31:12-16
English Standard Version
13Moses and Eleazar the priest and all the chiefs of the congregation went to meet them outside the camp.
14And 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.
15Moses said to them, "Have you let all the women live?
16Behold, 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.