Then the priests and Levites were assigned their duties in God's temple in Jerusalem, according to the instructions Moses had written.