1And the Lord said to Joshua, Fear not, nor be timorous: take with thee all the men of war, and arise, go up to Gai; behold, I have given into thy hands the king of Gai, and his land.
2And thou shalt do to Gai, as thou didst to Jericho and its king; and thou shalt take to thyself the spoil of its cattle; set now for thyself an ambush for the city behind.
3And Joshua and all the men of war rose to go up to Gai; and Joshua chose out thirty thousand mighty men, and he sent them away by night.
4And he charged them, saying, Do ye lie in ambush behind the city: do not go far from the city, and ye shall all be ready.
5And I and all with me will draw near to the city: and it shall come to pass when the inhabitants of Gai shall come forth to meet us, as before, that we will flee from before them.
6And when they shall come out after us, we will draw them away from the city; and they will say, These men flee from before us, as also before.
7And ye shall rise up out of the ambuscade, and go into the city.
8Ye shall do according to this word, lo! I have commanded you.
9And Joshua sent them, and they went to lie in ambush; and they lay between Bæthel and Gai, westward of Gai.
10And Joshua rose up early in the morning, and numbered the people; and he went up, he and the elders before the people to Gai.
11And all the men of war went up with him, and they went forward and came over against the city eastward.
12And the ambuscade was on the west side of the city.
14And it came to pass when the king of Gai saw it, he hasted and went out to meet them direct to the battle, he and all the people that were with him: and he knew not that there was an ambuscade formed against him behind the city.
15And Joshua and Israel saw, and retreated from before them.
16And they pursued after the children of Israel, and they themselves went to a distance from the city.
17There was no one left in Gai who did not pursue after Israel; and they left the city open, and pursued after Israel.
18And the Lord said to Joshua, Stretch forth thy hand with the spear that is in thy hand toward the city, for I have delivered it into thy hands; and the liers in wait shall rise up quickly out of their place.
19And Joshua stretched out his hand and his spear toward the city, and the ambuscade 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 hasted and burnt the city with fire.
20And when the inhabitants of Gai 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.
21And Joshua and all Israel saw that the ambuscade had taken the city, and that the smoke of the city went up to heaven; and they turned and smote the men of Gai.
22And these came forth out of the city to meet them; and they were in the midst of the army, some being on this side, and some on that; and they smote them until there was not left of them one who survived and escaped.
23And they took the king of Gai alive, and brought him to Joshua.
24And when the children of Israel had ceased slaying all that were in Gai, and in the fields, and in the mountain on the descent, from whence they pursued them even to the end, then Joshua returned to Gai, and smote it with the edge of the sword.
25And they that fell in that day, men and women, were twelve thousand: they slew all the inhabitants of Gai.
27Beside 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.
28And Joshua burnt the city with fire: he made it an uninhabited heap for ever, even to this day.
29And he hanged the king of Gai on a 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 until this day.