The Tribe of Benjamin and Visions from God Erroneously Interpreted Due to Pride
In Ascent of Mount Carmel by St. John of the Cross (available in full PDF at this link) in book 2 ch 19, part 4 we read:
4. In the Judges, again, we read that, when all the tribes of Israel had come together to make war against the tribe of Benjamin, in order to punish a certain evil to which that tribe had been consenting, they were so certain of victory because God had appointed them a captain for the war, that, when twenty-two thousand of their men were conquered and slain, they marvelled very greatly; and, going into the presence of God, they wept all that day, knowing not the cause of the fall, since they had understood that the victory was to be theirs. And, when they enquired of God if they should give battle again or no, He answered that they should go and fight against them. This time they considered victory to be theirs already, and went out with great boldness, and were conquered again the second time, with the loss of eighteen thousand of their men. Thereat they were greatly confused, and knew not what to do, seeing that God had commanded them to fight and yet each time they were vanquished, though they were superior to their enemies in number and strength, for the men of Benjamin were no more than twenty-five thousand and seven hundred and they were four hundred thousand. And in this way they were mistaken in their manner of understanding the words of God. His words were not deceptive, for He had not told them that they would conquer, but that they should fight; for by these defeats God wished to chastise a certain neglect and presumption of theirs, and thus to humble them. But, when in the end He answered that they would conquer, it was so, although they conquered only after the greatest stratagem and toil.348
This is a reference to Judges 20:12.