2 Chronicles 22:9

9 And he seeketh Ahaziah, and they capture him, (and he is hiding himself in Samaria), and bring him in unto Jehu, and put him to death, and bury him, for they said, `He [is] son of Jehoshaphat, who sought Jehovah with all his heart;' and there is none to the house of Ahaziah to retain power for the kingdom.

2 Chronicles 22:9 Meaning and Commentary

Ver. 9-11. And he sought Ahaziah
Who fled on Joram's being wounded by Jehu:

and they caught him;
the soldiers of Jehu, who were sent after him, and bid to smite him:

for he was hid in Samaria;
either in some part of the kingdom of Samaria, or in the city itself, whither he fled:

and brought him to Jehu:
who was at Jezreel, (See Gill on 2 Kings 9:27),

and when they had slain him they buried him;
not at Jezreel, but delivered him to his servants to carry him to Jerusalem, and there bury him in the sepulchres of his fathers, ( 2 Kings 9:28 ) ,

because, said they, he is the son of Jehoshaphat, who sought the Lord
with all his heart;
a grandson of his, and therefore out of respect to the memory of his name, these being religious men, ordered his burial there:

so the house of Ahaziah had no power to keep still the kingdom;
his brethren and their sons being slain, and his own children being young fell into the hands of Athaliah, who murdered them all, but one, hid by his aunt, and so got the government into her own hands, as may be observed in the following verses, ( 2 Chronicles 22:10-12 ) .

2 Chronicles 22:9 In-Context

7 and from God hath been the destruction of Ahaziah, to come unto Joram: and in his coming he hath gone out with Jehoram unto Jehu son of Nimshi, whom Jehovah anointed to cut off the house of Ahab.
8 And it cometh to pass, in Jehu's executing judgment with the house of Ahab, that he findeth the heads of Judah and sons of the brethren of Ahaziah, ministers of Ahaziah, and slayeth them.
9 And he seeketh Ahaziah, and they capture him, (and he is hiding himself in Samaria), and bring him in unto Jehu, and put him to death, and bury him, for they said, `He [is] son of Jehoshaphat, who sought Jehovah with all his heart;' and there is none to the house of Ahaziah to retain power for the kingdom.
10 And Athaliah mother of Ahaziah hath seen that her son is dead, and she riseth and destroyeth the whole seed of the kingdom of the house of Judah.
11 And Jehoshabeath daughter of the king taketh Joash son of Ahaziah, and stealeth him from the midst of the sons of the king who are put to death, and putteth him and his nurse into the inner part of the bed-chambers, and Jehoshabeath daughter of king Jehoram, wife of Jehoiada the priest, because she hath been sister of Ahaziah, hideth him from the face of Athaliah, and she hath not put him to death.
Young's Literal Translation is in the public domain.