They spent the night around the house of God because they had to guard it and they had the key to unlock it in the morning.