So Ahaziah’s sons were all about to be murdered. But Jehosheba, who was King Jehoram’s daughter and Ahaziah’s half-sister, took Ahaziah’s very young son Joash and hid him and ◄his nursemaid/the woman who took care of him► in a bedroom in the temple. So he was not killed.