He searched for Ahaziah, and he was captured while hiding in Samaria, and he was brought to Jehu and put to death. They buried him, for they said, “He is the grandson of Jehoshaphat, who sought the LORD with all his heart.” And the house of Ahaziah had no one able to rule the kingdom.
We have here an account of the reign of Ahaziah, a short reign (of one year only), yet long enough, unless it had been better. He was called Jeho-ahaz (Ch2 21:17); here he is called Ahaz-iah, which is the same name and of the same signification, only the words of which it is compounded are transposed.
Commenting on 2 Chronicles 22:1-9
he sought Ahaziah, and they caught him (for he was hid in Samaria)--(compare Kg2 9:27-29). The two accounts are easily reconciled. "Ahaziah fled first to the garden house and escaped to Samaria; but was here, where he had hid himself, taken by Jehu's men who pursued him, brought to Jehu, who was still near or in Jezreel, and at his command slain at the hill...
And he sought Ahaziah: and they caught him, (for he was hid in Samaria,) and brought him to Jehu: and when they had slain him, they buried him: Because, said they, he [is] the son of Jehoshaphat, who sought the LORD with all his heart. So the house of Ahaziah had no power to keep still the kingdom.