2 Chronicles 22
22 Since the Philistines and Arabs had killed all of Jehoram’s older sons when they plundered the palace, the citizens of Jerusalem made Ahaziah, his youngest son, king. 2 Ahaziah was 22 years old[a] when he became king, and he ruled for only one year in Jerusalem.
Ahaziah was the son of Athaliah, the granddaughter of Omri and daughter of Ahab. 3-4 Since his mother and her relatives were his counselors during his reign, Ahaziah followed the gods worshiped by the Northern Kingdom, and performed evil deeds before the Eternal as the house of Ahab did. By following this bad advice, Ahaziah ensured his destruction. 5-6 He repeated the mistake of Jehoshaphat and followed Jehoram, the son of Ahab king of the Northern Kingdom, to fight Hazael, king of Aram, at Ramoth-gilead. When the Arameans wounded Joram, he returned to Jezreel to heal his wounds and Ahaziah went to visit him there.
7 Ahaziah’s destruction by the True God was decided when he visited Joram because his visit coincided with the attack Jehu, the son of Nimshi, executed on Jezreel. (The Eternal had incited Jehu to destroy the house of Ahab.) 8 During his assault, Jehu found Ahaziah’s sons and nephews who served him and killed them. 9 Then Jehu looked for Ahaziah and found him cowering in Samaria. Jehu’s forces brought Ahaziah to Jehu, killed him, and buried him.[b] He was given a burial only because of his descent from Jehoshaphat, who looked for the Eternal and followed His commands. Because of Jehu’s slaughter, no one from Ahaziah’s immediate family lived to inherit the kingdom.
10 When Athaliah realized that her son Ahaziah had died along with all of the royal line, she decided to kill her opponents—the remaining royal offspring of the Southern Kingdom.
She decides to fill the power vacuum herself and become queen as her husband, Jehoram, did years before.
11 But little did she know that Jehoshabeath, King Jehoram’s daughter, had stolen Ahaziah’s son Joash from among the king’s sons when Jehu’s soldiers were killing them. She hid Joash and his nurse in a bedroom. So Jehoshabeath, the daughter of King Jehoram and the sister of King Ahaziah, saved the Davidic line by protecting him from Athaliah’s murderous rage. Since she was the wife of Jehoiada the priest, Jehoshabeath 12 was able to hide Joash and his nurse in the temple of the True God during the six years of Athaliah’s reign.