2 Kings 11:1-5
English Standard Version
Chapter 11
1Now when Athaliah the mother of Ahaziah saw that her son was dead, she arose and destroyed all the royal family. 2But Jehosheba, the daughter of King Joram, sister of Ahaziah, took Joash the 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. Thus they hid him from Athaliah, so that he was not put to death. 3And he remained with her six years, hidden in the house of the Lord, while Athaliah reigned over the land.
4But in the seventh year Jehoiada sent and brought the captains of the Carites and of the guards, and had them come to him in the house of the Lord. And he made a covenant with them and put them under oath in the house of the Lord, and he showed them the king 's son.
5And he commanded them, "This is the thing that you shall do: one third of you, those who come off duty on the Sabbath and guard the king 's house