2 Chronicles 22:9

9 Then he went to look for Ahaziah. Jehu's men captured him while he was hiding in Samaria. Ahaziah was brought to Jehu and put to death. People buried his body, because they said, "He was a grandson of Jehoshaphat, who followed the LORD with all his heart." So no one in the royal family of Ahaziah was powerful enough to keep the kingdom.

2 Chronicles 22:9 In-Context

7 Through Ahaziah's visit to Joram, God caused Ahaziah to fall from power. When Ahaziah arrived, he rode out with Joram to meet Jehu, the son of Nimshi. The LORD had anointed Jehu to destroy the royal family of Ahab.
8 So Jehu punished Ahab's family, just as the LORD had told him to. While he was doing it, he found the princes of Judah and the sons of Ahaziah's relatives. They had been serving Ahaziah. So Jehu killed them.
9 Then he went to look for Ahaziah. Jehu's men captured him while he was hiding in Samaria. Ahaziah was brought to Jehu and put to death. People buried his body, because they said, "He was a grandson of Jehoshaphat, who followed the LORD with all his heart." So no one in the royal family of Ahaziah was powerful enough to keep the kingdom.
10 Athaliah was Ahaziah's mother. She saw that her son was dead. So she began to wipe out the whole royal house of Judah.
11 But Jehosheba went and got Joash, the son of Ahaziah. She was the daughter of King Jehoram. She stole Joash away from among the royal princes. All of them were about to be murdered. She put Joash and his nurse in a bedroom. Jehosheba, the daughter of King Jehoram, was the wife of the priest Jehoiada. She was also Ahaziah's sister. So Jehosheba hid the child from Athaliah. That's why Athaliah couldn't kill him.
Holy Bible, New International Reader's Version® Copyright © 1995, 1996, 1998 by Biblica.   All rights reserved worldwide.