Moses was angry with the officers of the army—the commanders of thousands and commanders of hundreds—who returned from the battle.
References for Numbers 31:14
“Have you allowed all the women to live?” he asked them.
“They were the ones who followed Balaam’s advice and enticed the Israelites to be unfaithful to the LORD in the Peor incident, so that a plague struck the LORD’s people.
References for Numbers 31:16