36 And the children of Benjamin saw that they were smitten; and the men of Israel gave place to Benjamin, because they trusted in the men in ambush which they had prepared against Gibeah.
Judges 20:36 Cross References - CAB
Joshua 8:15-29
15 And Joshua and Israel saw, and retreated from before them.
16 And they pursued after the children of Israel, and they themselves went to a distance from the city.
17 There was no one left in Ai who did not pursue after Israel; and they left the city open, and pursued after Israel.
18 And the Lord said to Joshua, Stretch forth your hand with the spear that is in your hand toward the city, for I have delivered it into your hands; and those lying in wait shall rise up quickly out of their place.
19 And Joshua stretched out his hand and his spear toward the city, and the ambush rose up quickly out of their place. And they came forth when he stretched out his hand, and they entered into the city, and took it; and they hastened and burned the city with fire.
20 And when the inhabitants of Ai looked round behind them, then they saw the smoke going up out of the city to heaven, and they were no longer able to flee this way or that way.
21 And Joshua and all Israel saw that the ambush had taken the city, and that the smoke of the city went up to heaven; and they turned and struck down the men of Ai.
22 And these came forth out of the city to meet them; and they were in the midst of the army, some on this side, and some on that; and they struck them until there was not one of them left who survived and escaped.
23 And they took the king of Ai alive, and brought him to Joshua.
24 And when the children of Israel had ceased slaying all that were in Ai, and in the fields, and in the mountain on the descent, from where they pursued them, even to the end, then Joshua returned to Ai, and attacked it with the edge of the sword.
25 And those that fell in that day, men and women, were twelve thousand: they killed all the inhabitants of Ai.
26 (TEXT OMITTED)
27 Beside the spoils that were in the city, all things which the children of Israel took as spoil for themselves according to the command of the Lord, as the Lord commanded Joshua.
28 And Joshua burned the city with fire: he made it an uninhabited heap forever, even to this day.
29 And he hanged the king of Ai on the gallows, and he remained on the tree till evening. And when the sun went down, Joshua gave charge, and they took down his body from the tree, and cast it into a pit, and they set over him a heap of stones to this day.