So they and their sons were assigned as guards to the gates of the LORD's temple, which had been the tent-temple.