Good morning!
Greetings in the name of Father, Son and Holy Spirit.
This is what the LORD says:
“At just the right time, I will respond to you.
On the day of salvation I will help you.
I will protect you and give you to the people
as my covenant with them.
Through you I will reestablish the land of Israel
and assign it to its own people again. (Isaiah 49:8)


So Joshua and all the fighting men set out to attack Ai. Joshua chose 30,000 of his best warriors. Initially Joshua sent 3,000 warriors, but he experienced the total defeat. In humility, he called for 30,000 of his best warriors.
Following God’s wisdom, Joshua sent them out at night with these orders: “Hide in ambush close behind the town and be ready for action. When our main army attacks, the men of Ai will come out to fight as they did before, and we will run away from them. We will let them chase us until we have drawn them away from the town. For they will say, ‘The Israelites are running away from us as they did before.’ Then, while we are running from them, you will jump up from your ambush and take possession of the town, for the LORD your God will give it to you. Set the town on fire, as the LORD has commanded. You have your orders.”
The chosen 30,000 warriors left and went to the place of ambush between Bethel and the west side of Ai. But Joshua remained among the people in the camp that night in prayer to God. He was with God while being careful and sensitive to hear God. Early the next morning Joshua roused his men and started toward Ai, accompanied by the elders of Israel. Joshua did not go just alone either. He set out with the elders, the spiritual leaders also to continually be connected with God.
All the fighting men who were with Joshua marched in front of the town and camped on the north side of Ai, with a valley between them and the town. Joshua wisely planned and executed according to God’s wisdom. That night Joshua sent 5,000 men to lie in ambush between Bethel and Ai, on the west side of the town. So they stationed the main army north of the town and the ambush west of the town. Joshua himself spent that night in the valley.
When the king of Ai saw the Israelites across the valley, he and all his army hurried out early in the morning and attacked the Israelites at a place overlooking the Jordan Valley. But the king of Ai didn’t realize there was an ambush behind the town. Of course, it was done by God. God made the king blind about an possibility of being ambushed. Joshua and the Israelite army fled toward the wilderness as though they were badly beaten. All the men in the town were called out to chase after them. In this way, they were lured away from the town. There was not a man left in Ai or Bethel who did not chase after the Israelites, and the town was left wide open.
The God’s set time had come. God said to Joshua, “Point the spear in your hand toward Ai, for I will hand the town over to you.” Joshua did as he was commanded. Joshua raised his spear high while giving thanks to God. As soon as the warriors saw Joshua’s raised hand high with his spear, all the men in ambush jumped up from their position and poured into the town. They quickly captured it and set it on fire.
When the men of Ai looked behind them, smoke from the town was filling the sky, and they had nowhere to go. For the Israelites who had fled in the direction of the wilderness now turned on their pursuers. When Joshua and all the other Israelites saw that the ambush had succeeded and that smoke was rising from the town, they turned and attacked the men of Ai. Meanwhile, the Israelites who were inside the town came out and attacked the enemy from the rear. So the men of Ai were caught in the middle, with Israelite fighters on both sides. Israel attacked them, and not a single person survived or escaped. Only the king of Ai was taken alive and brought to Joshua.
When the Israelite army finished chasing and killing all the men of Ai in the open fields, they went back and finished off everyone inside. So the entire population of Ai was wiped out that day—12,000 in all. For Joshua kept holding out his spear until everyone who had lived in Ai was completely destroyed. Only the livestock and the treasures of the town were not destroyed, for the Israelites kept these as plunder for themselves, as God had commanded Joshua. So Joshua burned the town of Ai, and it became a permanent mound of ruins.

And so, dear brothers and sisters, I plead with you to give your bodies to God because of all He has done for you. Let them be a living and holy sacrifice–the kind He will find acceptable. This is truly the way to worship Him. (Hebrews 12:1)