Ahaziah’s downfall came from God when he went to visit Joram. When Ahaziah arrived, he went out with Joram to meet Jehu son of Nimshi, whom the LORD had anointed to destroy the house of Ahab.
Jewish Publication Society of America Version (JPS1917) - 2 Chronicles 22:7 >Now the downfall of Ahaziah was of God, in that he went unto Joram; for when he was come, he went out with Jehoram against Jehu the son of Nimshi, whom the LORD had anointed to cut off the house of Ahab.