And, according to the ordinance of David his father, he appointed the divisions of the priests for their service, the Levites for their charges, to praise and serve before the priests, as the charge of each day required, and the gatekeepers by their divisions at each gate; for thus was the commandment of David the man of God.