And he appointed, according to the ordinance of David his father, the divisions of the priests for their service, and the Levites for their charges, to praise and serve before the priests, as the duty of every day required; and the doorkeepers by their divisions at every gate: for such was the commandment of David the man of God;