They also assigned the priests and Levites to work divisions for the service of God in Jerusalem, as it was written in the Book of Moses.