When the king of Ai saw this, he and all the men of the city hurried out early in the morning to meet Israel in battle at a certain place overlooking the Arabah. But he did not know that an ambush had been set against him behind the city.
NIV
When the king [and people] of Ai saw it, they hastily rose early, and the men of the city went out against Israel to battle [at a time and place appointed] before the Arabah [plain]. But he did not know of the ambush against him behind the city.
AMP
And it came to pass, when the king of Ai saw it, that they hasted and rose up early, and the men of the city went out against Israel to battle, he and all his people, at a time appointed, before the plain; but he wist not that there were liers in ambush against him behind the city.
KJV
When the men of the city came out and fought against Joab, some of the men in David's army fell; moreover, Uriah the Hittite died.
NIV
And the men of the city came out and fought with Joab, and some of the servants of David fell. Uriah the Hittite died also.
AMP
And the men of the city went out, and fought with Joab: and there fell some of the people of the servants of David; and Uriah the Hittite died also.
KJV