1 Chronicles 9:27

And they remained in their watches, on all sides of the temple of the Lord, so that, when the time had arrived, they might open the gates in the morning

Other versions

King James Version

And they lodged round about the house of God, because the charge was upon them, and the opening thereof every morning pertained to them.

English Standard Version

And they lodged around the house of God, for on them lay the duty of watching, and they had charge of opening it every morning.

New International Version

They would spend the night stationed around the house of God, because they had to guard it; and they had charge of the key for opening it each morning.