2 ChroniclesChapter 22

The people of Jerusalem made Ahaziah, Jehoram's youngest son, king in his place, since the raiding band that came with the Arabs against the camp had killed all the older sons. So Ahaziah son of Jehoram became king of Judah.
Ahaziah was forty-two years old when he became king, and he reigned one year in Jerusalem. His mother's name was Athaliah, granddaughter of Omri. [Footnote: The parallel account and some ancient witnesses read twenty-two years old.]
He too walked in the ways of the house of Ahab, for his mother was his counselor in doing wrong.
He did what was evil in the eyes of the LORD, as the house of Ahab had done, for after his father's death they were his advisers, to his ruin.
He followed their counsel and went with Joram son of Ahab, king of Israel, to make war against Hazael king of Aram at Ramoth-gilead, and the Arameans wounded Joram.
So he returned to Jezreel to recover from the wounds they had inflicted on him at Ramah when he fought against Hazael king of Aram. And Ahaziah son of Jehoram, king of Judah, went down to Jezreel to visit Joram son of Ahab, because he was ill.
Ahaziah's downfall came from God through this visit to Joram. For when he arrived, he went out with Jehoram to meet Jehu son of Nimshi, whom the LORD had anointed to cut off the house of Ahab.
While Jehu was executing judgment on the house of Ahab, he came upon the officials of Judah and the sons of Ahaziah's brothers, who served Ahaziah, and he killed them.
Then he searched for Ahaziah, and they captured him while he was hiding in Samaria. They brought him to Jehu and put him to death, but 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 strong enough to hold the kingdom.
When Athaliah, Ahaziah's mother, saw that her son was dead, she set about destroying the whole royal line of the house of Judah.
But Jehoshabeath, the king's daughter, took Joash son of Ahaziah and stole him away from among the king's sons who were being put to death, and she put him and his nurse in a bedroom. So Jehoshabeath, daughter of King Jehoram and wife of Jehoiada the priest—she was Ahaziah's sister—hid him from Athaliah, and Athaliah did not put him to death.
He remained hidden with them in the house of God for six years, while Athaliah ruled the land.