2 Kings 9:27
But when Ahaziah the king of Judah saw this, he fled by the way of the garden house. And Jehu followed after him, and said, Smite him also in the chariot. And they did so at the going up to Gur, which is by Ibleam. And he fled to Megiddo, and died there.
Ahaziah was king of Judah, allied with Jehoram king of Israel and under the influence of the family of Ahab. He was visiting Jehoram at Jezreel when Jehu made his attack against the house of Ahab. In that visit he was caught in Jehu's work of judgment and became one of those put to death. His killing was part of Jehu's commission to bring judgment upon and destroy the house of Ahab.