7 And Joshua said, “Alas, Sovereign Lord, why did you ever bring this people across the Jordan to deliver us into the hands of the Amorites to destroy us? If only we had been content to stay on the other side of the Jordan!
When Joshua went against Ai the first time, he did not consult God. He relied on his own strength and the strength of his army to defeat the small city. They had just defeated Jericho, and it was a large city. What problems would they have defeating a small city? Then they realized after their defeat, that they had not put God first and they turned to him. Do you rely on your own skills and strength to get tasks done when the task is easy? Do you only go to God when you have a difficult task? Try consulting him with all your tasks. God may want you to learn lessons, remove pride, and learn to put him first in your life. Then, he can work through you.