Then he asked Jehoshaphat, “Would you go to Ramoth with me and attack the Syrians?” “Just tell me what to do,” Jehoshaphat answered. “My army and horses are at your command.
But the prophet Jehu son of Hanani met him and said: By helping that wicked Ahab, you have made friends with someone who hates the LORD. Now the LORD God is angry with you!
In fact, after his father's death, Ahaziah sinned against the LORD by appointing some of Ahab's relatives to be his advisers. Their advice led to his downfall.
All those who truly respected the LORD and honoured his name started discussing these things, and when God saw what was happening, he had their names written as a reminder in his book.