KJV: And when they had set the people, even all the host that was on the north of the city, and their liers in wait on the west of the city, Joshua went that night into the midst of the valley.
NASB: So they stationed the people, all the army that was on the north side of the city, and its rear guard on the west side of the city, and Joshua spent that night in the midst of the valley.
KJV: 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.
NASB: It came about when the king of Ai saw it, that the men of the city hurried and rose up early and went out to meet Israel in battle, he and all his people at the appointed place before the desert plain. But he did not know that there was an ambush against him behind the city.
KJV: And the LORD said unto Joshua, Stretch out the spear that is in thy hand toward Ai; for I will give it into thine hand. And Joshua stretched out the spear that he had in his hand toward the city.
NASB: Then the LORD said to Joshua, "Stretch out the javelin that is in your hand toward Ai, for I will give it into your hand." So Joshua stretched out the javelin that was in his hand toward the city.
KJV: And the ambush arose quickly out of their place, and they ran as soon as he had stretched out his hand: and they entered into the city, and took it, and hasted and set the city on fire.
NASB: The men in ambush rose quickly from their place, and when he had stretched out his hand, they ran and entered the city and captured it, and they quickly set the city on fire.