ESV: 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.
NIV: 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.
NASB: They spent the night around the house of God, because the watch was committed to them; and they were in charge of opening it morning by morning.
CSB: They spent the night in the vicinity of God’s temple, because they had guard duty and were in charge of opening it every morning.
NLT: They would spend the night around the house of God, since it was their duty to guard it and to open the gates every morning.
KJV: And they lodged round about the house of God, because the charge was upon them, and the opening thereof every morning pertained to them.
NKJV: And they lodged all around the house of God because they had the responsibility, and they were in charge of opening it every morning.