When Athaliah the mother of Ahaziah saw that her son was dead, she arose and destroyed all the royal heirs.
But 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 murdered; and they hid him and his nurse in the bedroom, from Athaliah, so that he was not killed.
So he was hidden with her in the house of the Lord for six years, while Athaliah reigned over the land.
In the seventh year Jehoiada sent and brought the captains of hundreds--of the bodyguards and the escorts--and brought them into the house of the Lord to him. And he made a covenant with them and took an oath from them in the house of the Lord, and showed them the king's son.
Then he commanded them, saying, "This is what you shall do: One-third of you who come on duty on the Sabbath shall be keeping watch over the king's house,
one-third shall be at the gate of Sur, and one-third at the gate behind the escorts. You shall keep the watch of the house, lest it be broken down.