2 Chronicles 20:10-22 NIV
“But now here are men from Ammon, Moab and Mount Seir, whose territory you would not allow Israel to invade when they came from Egypt; so they turned away from them and did not destroy them. See how they are repaying us by coming to drive us out of the possession you gave us as an inheritance. Our God, will you not judge them? For we have no power to face this vast army that is attacking us. We do not know what to do, but our eyes are on you.”
All the men of Judah, with their wives and children and little ones, stood there before the LORD.
Then the Spirit of the LORD came on Jahaziel son of Zechariah, the son of Benaiah, the son of Jeiel, the son of Mattaniah, a Levite and descendant of Asaph, as he stood in the assembly.
He said: “Listen, King Jehoshaphat and all who live in Judah and Jerusalem! This is what the LORD says to you: ‘Do not be afraid or discouraged because of this vast army. For the battle is not yours, but God’s. Tomorrow march down against them. They will be climbing up by the Pass of Ziz, and you will find them at the end of the gorge in the Desert of Jeruel. You will not have to fight this battle. Take up your positions; stand firm and see the deliverance the LORD will give you, Judah and Jerusalem. Do not be afraid; do not be discouraged. Go out to face them tomorrow, and the LORD will be with you.’ ”
Jehoshaphat bowed down with his face to the ground, and all the people of Judah and Jerusalem fell down in worship before the LORD. Then some Levites from the Kohathites and Korahites stood up and praised the LORD, the God of Israel, with a very loud voice.
Early in the morning they left for the Desert of Tekoa. As they set out, Jehoshaphat stood and said, “Listen to me, Judah and people of Jerusalem! Have faith in the LORD your God and you will be upheld; have faith in his prophets and you will be successful.” After consulting the people, Jehoshaphat appointed men to sing to the LORD and to praise him for the splendor of his holiness as they went out at the head of the army, saying:
“Give thanks to the LORD,
for his love endures forever.”
As they began to sing and praise, the LORD set ambushes against the men of Ammon and Moab and Mount Seir who were invading Judah, and they were defeated.
NIV: New International Version