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.