They appointed the priests in their divisions and the Levites in their orders for the service of God in Jerusalem, as it had been written in the Book of Moses.