Even though Jehoshaphat already had great wealth and honor, he allied himself with Ahab through marriage.
A few years later, while Jehoshaphat was visiting Ahab in Samaria, Ahab slaughtered many sheep and oxen for Jehoshaphat and those who were with him in order to persuade him to attack Ramoth-gilead.
"Will you go with me to Ramoth-gilead?" Israel's King Ahab asked Judah's King Jehoshaphat. Jehoshaphat replied, "I and my people will be united with you and your people in battle.
But," Jehoshaphat said to Israel's king, "first, let's see what the LORD has to say."
So Israel's king gathered four hundred prophets and asked them, "Should we go to war with Ramoth-gilead or not?" "Attack!" the prophets answered. "God will hand it over to the king."
But Jehoshaphat said, "Isn't there any other prophet of the LORD around whom we could ask?"
"There's one other man who could ask the LORD for us," Israel's king told Jehoshaphat, "but I hate him because he never prophesies anything good about me, only bad. His name is Micaiah, Imlah's son." "The king shouldn't speak like that!" Jehoshaphat said.
So Israel's king called an officer and ordered, "Bring Micaiah, Imlah's son, right away."
Now Israel's king and Judah's King Jehoshaphat were sitting on their thrones dressed in their royal robes at the threshing floor beside the entrance to the gate of Samaria. All the prophets were prophesying in front of them.
Zedekiah, Chenaanah's son, made iron horns for himself and said, "This is what the LORD says: With these horns you will gore the Arameans until there's nothing left of them!"
The other prophets agreed: "Attack Ramoth-gilead and win! The LORD will hand it over to the king!"
Meanwhile, the messenger who had gone to summon Micaiah said to him, "Listen, the prophets all agree that the king will succeed. You should say the same thing they say and prophesy success."
But Micaiah answered, "As surely as the LORD lives, I will say only what God tells me to say."
When Micaiah arrived, the king asked him, "Micaiah, should we go to war with Ramoth-gilead or not?" "Attack and win!" Micaiah answered. "The LORD will hand it over to the king."
But the king said, "How many times must I demand that you tell me the truth when you speak in the LORD's name?"
Then Micaiah replied, "I saw all Israel scattered on the hills like sheep without a shepherd! And then the LORD said: ‘They have no master. Let them return safely to their own homes.'"
Then Israel's king said to Jehoshaphat, "Didn't I tell you? He never prophesies anything good about me, only bad."
Then Micaiah said, "Listen now to the LORD's word: I saw the LORD enthroned with all the heavenly forces stationed at his right and at his left.
The LORD said, ‘Who will persuade Israel's King Ahab so that he attacks Ramoth-gilead and dies there?' There were several suggestions,
until one particular spirit approached the LORD and said, ‘I will persuade him.' ‘How?' the LORD asked.
‘I will be a lying spirit in the mouths of all his prophets,' he said. The LORD agreed: ‘You will succeed in persuading him! Go ahead!'
So now, since the LORD placed a lying spirit in the mouths of these prophets of yours, it is the LORD who has pronounced disaster against you!"
Zedekiah, Chenaanah's son, approached Micaiah and slapped him on the cheek. "Just how did the LORD's spirit leave me to speak to you?" he asked.
Micaiah answered, "You will find out on the day you try to hide in an inner room."
"Arrest him," ordered Israel's king, "and turn him over to Amon the city governor and to Joash the king's son.
Tell them, ‘The king says: Put this man in prison and feed him minimum rations of bread and water until I return safely.'"
"If you ever return safely," Micaiah replied, "then the LORD wasn't speaking through me." Then he added, "Mark my words, every last one of you!"
So Israel's king and Judah's King Jehoshaphat attacked Ramoth-gilead.
Israel's king said to Jehoshaphat, "I will disguise myself when we go into battle, but you should wear your royal attire." When the king of Israel had disguised himself, they entered the battle.
Meanwhile, Aram's king had commanded his chariot officers, "Don't bother with anyone big or small. Fight only with Israel's king."
When the chariot officers saw Jehoshaphat, they assumed that he must be Israel's king, so they turned to attack him. But when Jehoshaphat cried out, the LORD helped him, and God lured them away from him.
When the chariot officers realized that he wasn't Israel's king, they stopped chasing him.
Someone, however, randomly shot an arrow that struck Israel's king between the joints in his armor. "Turn around and get me out of the battle," the king told his chariot driver. "I've been hit!"
While the battle raged all that day, Israel's king stood propped up in his chariot facing the Arameans. But that evening he died, just as the sun was going down.