Later the Moabites, Ammonites, and some of the Meunites came to wage war against Jehoshaphat.
Some men reported to Jehoshaphat, "A large crowd is coming against you from the other side of the Dead Sea, from Edom. The crowd is already in Hazazon Tamar" (also called En Gedi).
Frightened, Jehoshaphat decided to ask for the LORD's help. He announced a fast throughout Judah.
The people of Judah gathered to seek the LORD's help. They came from every city in Judah.
In the new courtyard at the LORD's temple, Jehoshaphat stood in front of the people.
He said, "LORD God of our ancestors, aren't you the God in heaven? You rule all the kingdoms of the nations. You possess power and might, and no one can oppose you.
Didn't you, our God, force those who were living in this country out of Israel's way? Didn't you give this country to the descendants of your friend Abraham to have permanently?
His descendants have lived in it and built a holy temple for your name in it. They said,
'If evil comes in the form of war, flood, plague, or famine, we will stand in front of this temple and in front of you because your name is in this temple. We will cry out to you in our troubles, and you will hear us and save us.'
"The Ammonites, Moabites, and the people of Mount Seir have come here. However, you didn't let Israel invade them when they came out of Egypt. The Israelites turned away from them and didn't destroy them.
They are now paying us back by coming to force us out of your land that you gave to us.
You're our God. Won't you judge them? We don't have the strength to face this large crowd that is attacking us. We don't know what to do, so we're looking to you."
All the people from Judah, their infants, wives, and children were standing in front of the LORD.
Then the LORD's Spirit came to Jahaziel. (He was the son of Zechariah, grandson of Benaiah, great-grandson of Jeiel, whose father was Mattaniah, a Levite descended from Asaph.)
Jahaziel said, "Pay attention to me, everyone from Judah, everyone living in Jerusalem, and King Jehoshaphat. This is what the LORD says to you: Don't be frightened or terrified by this large crowd. The battle isn't yours. It's God's.
Tomorrow go into battle against them. They will be coming up the Ziz Pass. You will find them at the end of the valley in front of the Jeruel Desert.
You won't fight this battle. [Instead,] take your position, stand still, and see the victory of the LORD for you, Judah and Jerusalem. Don't be frightened or terrified. Tomorrow go out to face them. The LORD is with you."
Jehoshaphat bowed down with his face touching the ground. Everyone from Judah and the people who lived in Jerusalem immediately bowed down in front of the LORD.
The Levites, descendants of Kohath and Korah, stood up to praise the LORD God of Israel with very loud songs.
They got up early in the morning and went to the desert of Tekoa. As they were leaving, Jehoshaphat stopped and said, "Listen to me, people of Judah and those living in Jerusalem. Trust the LORD your God, and believe. Believe his prophets, and you will succeed."
After he had advised the people, he appointed people to sing to the LORD and praise him for the beauty of his holiness. As they went in front of the troops, they sang, "Thank the LORD because his mercy endures forever!"
As they started to sing praises, the LORD set ambushes against the Ammonites, Moabites, and the people of Mount Seir who had come into Judah. They were defeated.
Then the Ammonites and Moabites attacked the people from Mount Seir and annihilated them. After they had finished off the people of Seir, they helped destroy one another.
The people of Judah went to the watchtower in the desert and looked for the crowd. Corpses were lying on the ground. No one had escaped.
When Jehoshaphat and his troops came to take the loot, they found among them a lot of goods, clothes, and valuables. They found more than they could carry. They spent three days collecting the loot.
On the fourth day they gathered in the valley of Beracah. Because they thanked the LORD there, that place is still called the valley of Beracah [Thanks] today.
All the men of Judah and Jerusalem returned to Jerusalem. They rejoiced while Jehoshaphat led them. The LORD gave them a reason to rejoice about [what had happened to] their enemies.
So they brought harps, lyres, and trumpets to the LORD's temple in Jerusalem.
The fear of the LORD came over the kingdoms in that area when they heard how the LORD waged war against Israel's enemies.
Jehoshaphat's kingdom was peaceful, since his God surrounded him with peace.
Jehoshaphat ruled as king of Judah. He was 35 years old when he began to rule, and he ruled for 25 years in Jerusalem. His mother's name was Azubah, daughter of Shilhi.
Jehoshaphat carefully followed the example his father Asa had set and did what the LORD considered right.
But the illegal worship sites on the hills were not torn down. The people still didn't have their hearts set on the God of their ancestors.
Everything else about Jehoshaphat from first to last is written in the records of Jehu, son of Hanani, which is included in the Book of the Kings of Israel.
After this, King Jehoshaphat of Judah allied himself with King Ahaziah of Israel, who led him to do evil.
Jehoshaphat joined him in making ships to go to Tarshish. They made the ships in Ezion Geber.
Then Eliezer, son of Dodavahu from Mareshah, prophesied against Jehoshaphat. He said, "The LORD will destroy your work because you have allied yourself with Ahaziah." So the ships were wrecked and couldn't go to Tarshish.