9 then gave orders to find Ahaziah. Jehu's officers found him hiding in Samaria. They brought Ahaziah to Jehu, who immediately put him to death. They buried Ahaziah only because they respected Jehoshaphat his grandfather, who had done his best to obey the Lord.There was no one from Ahaziah's family left to become king of Judah.
10 As soon as Athaliah heard that her son King Ahaziah was dead, she decided to kill any relative who could possibly become king. She would have done just that,
11 but Jehosheba rescued Joash son of Ahaziah just as the others were about to be murdered. Jehosheba, who was Jehoram's daughter and Ahaziah's half-sister, was married to Jehoiada the priest. So she was able to hide her nephew Joash and his personal servant in a bedroom in the Lord's temple where he was safe from Athaliah.
12 Joash hid in the temple with them for six years while Athaliah ruled as queen of Judah.