2 Chronicles 22:1-12 NASB1995
Then the inhabitants of Jerusalem made Ahaziah, his youngest son, king in his place, for the band of men who came with the Arabs to the camp had slain all the older sons. So Ahaziah the son of Jehoram king of Judah began to reign. Ahaziah was twenty-two years old when he became king, and he reigned one year in Jerusalem. And his mother’s name was Athaliah, the granddaughter of Omri. He also walked in the ways of the house of Ahab, for his mother was his counselor to do wickedly. He did evil in the sight of the LORD like the house of Ahab, for they were his counselors after the death of his father, to his destruction.
He also walked according to their counsel, and went with Jehoram the son of Ahab king of Israel to wage war against Hazael king of Aram at Ramoth-gilead. But the Arameans wounded Joram. So he returned to be healed in Jezreel of the wounds which they had inflicted on him at Ramah, when he fought against Hazael king of Aram. And Ahaziah, the son of Jehoram king of Judah, went down to see Jehoram the son of Ahab in Jezreel, because he was sick.
Now the destruction of Ahaziah was from God, in that he went to Joram. For when he came, he went out with Jehoram against Jehu the son of Nimshi, whom the LORD had anointed to cut off the house of Ahab.
It came about when Jehu was executing judgment on the house of Ahab, he found the princes of Judah and the sons of Ahaziah’s brothers ministering to Ahaziah, and slew them. He also sought Ahaziah, and they caught him while he was hiding in Samaria; they brought him to Jehu, put him to death and buried him. For they said, “He is the son of Jehoshaphat, who sought the LORD with all his heart.” So there was no one of the house of Ahaziah to retain the power of the kingdom.
Now when Athaliah the mother of Ahaziah saw that her son was dead, she rose and destroyed all the royal offspring of the house of Judah. But Jehoshabeath the king’s daughter took Joash the son of Ahaziah, and stole him from among the king’s sons who were being put to death, and placed him and his nurse in the bedroom. So Jehoshabeath, the daughter of King Jehoram, the wife of Jehoiada the priest (for she was the sister of Ahaziah), hid him from Athaliah so that she would not put him to death. He was hidden with them in the house of God six years while Athaliah reigned over the land.
NASB1995: New American Standard Bible - NASB 1995