Ahaziah king of Israel/Samaria dies and snubs Elijah (and God); his son, Joram, forms an alliance with Jehoshaphat (of Judah) and defeats Moab. Jehoram (Jehoshaphat’s son) is evil and loses Edom: 2 Kings 1; 2 Kings 3; 1 Kings 22:41−49; 2 Chronicles 20:31−37; 1 Kings 22:50; 2 Chronicles 21:1−4; 2 Kings 8:16−22; 2 Chronicles 21:5−20
Although Jehoshaphat made some poor choices in allies, he was also capable of calling all of Judah to fast and pray when threatened by three attacking armies.
One of the men prophesied:
2 Chronicles 20:17 But you will not even need to fight. Take your positions; then stand still and watch the Lord’s victory.
So after consulting his people, Jehoshaphat sent out worshippers:
2 Chronicles 20:22 At the very moment they began to sing and give praise, the Lord caused the armies of Ammon, Moab, and Mount Seir to start fighting among themselves.
The result was peace for many years:
2 Chronicles 20:29-30 When all the surrounding kingdoms heard that the Lord himself had fought against the enemies of Israel, the fear of God came over them. So Jehoshaphat’s kingdom was at peace, for his God had given him rest on every side.