7 Through Ahaziah’s visit to Joram, God brought about Ahaziah’s downfall. 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.

Read 2 Chronicles 22:7 Using Other Translations

And the destruction of Ahaziah was of God by coming to 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.
But it was ordained by God that the downfall of Ahaziah should come about through his going to visit Joram. For when he came there, he went out with Jehoram to meet Jehu the son of Nimshi, whom the LORD had anointed to destroy the house of Ahab.
But God had decided that this visit would be Ahaziah’s downfall. While he was there, Ahaziah went out with Joram to meet Jehu grandson of Nimshi, whom the LORD had appointed to destroy the dynasty of Ahab.