2 Chronicles 22:7

Indeed, it was the will of God against Ahaziah that he would go to Joram, and when he had gone, that he also would go out with him against Jehu, the son of Nimshi, whom the Lord had anointed to destroy the house of Ahab

Other versions

King James Version

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.

English Standard Version

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.

New International Version

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.