Joshua 8:18

18 Then the Lord said to Joshua, "Point your spear at Ai; I am giving it to you." Joshua did as he was told,

Joshua 8:18 Meaning and Commentary

Joshua 8:18

And the Lord said unto Joshua, stretch out the spear that [is]
in thy hand towards Ai
On which was a flag, as Abarbinel and Ben Melech think; and which is not improbable, and served for a signal for the ambush to come out and seize the city, as both they and Jarchi observe, as well as a signal also to the army of Israel to prepare to turn and face about, and engage with the enemy; though they did not actually do this until they saw the smoke of the city, ( Joshua 8:21 ) ;

for I will give it into thine hand;
of which the stretching out of his spear seems also to be a confirming sign to him, and which he kept stretched out until all the inhabitants of Ai were destroyed, ( Joshua 8:26 ) ;

and Joshua stretched out the spear that [he had] in his hand toward
the city:
and therefore must turn himself towards it; and it is highly probable that at the same time there was a full stop of the army, and that they immediately turned or prepared to turn about.

Joshua 8:18 In-Context

16 All the men in the city had been called together to go after them, and as they pursued Joshua, they kept getting farther away from the city.
17 Every man in Ai went after the Israelites, and the city was left wide open, with no one to defend it.
18 Then the Lord said to Joshua, "Point your spear at Ai; I am giving it to you." Joshua did as he was told,
19 and as soon as he lifted his hand, the men who had been hiding got up quickly, ran into the city and captured it. They immediately set the city on fire.
20 When the men of Ai looked back, they saw the smoke rising to the sky. There was no way for them to escape, because the Israelites who had run toward the barren country now turned around to attack them.
Scripture taken from the Good News Translation - Second Edition, Copyright 1992 by American Bible Society. Used by Permission.