The war remained doubtful with an uncertain issue, but in the third engagement the people of Benjamin were delivered to the people of Israel, and being condemned by the divine judgment [they] paid the penalty for their widely immoral behavior.
Judges 20:28
28 And Phinehas, the son of Eleazar, the son of Aaron, stood before it in those days,) saying, Shall I yet again go out to battle against the children of Benjamin my brother, or shall I cease? And the LORD said, Go up; for to morrow I will deliver them into thine hand.
Commentaries
Begging the Lord's peace, they returned more boldly to war, and they to whom prayer had given courage and who had entertained much hope were now able to do what they planned. On a pretext of withdrawing their front lines, setting ambushes at night in the rear of the city, where a segment of the enemy was located, they followed as some retired and thus were provided with an opportunity for invading the unprotected city. Fires were quickly set and flared up while raging flames and waves of heat revealed the sight of the taken city.
Source: LETTER 33