3 David with Zadok of the sons of Eleazar, and Ahimelech of the sons of Ithamar, divided them according to their ordering in their service.
*Minor differences ignored. Grouped by changes, with first version listed as example.
Zadok and Ahimelech (rather Abiathar, see 1-Chronicles 24:6) assisted David in drawing up the priestly courses, as the "captains of the host" assisted him in making the divisions of the singers 1-Chronicles 25:1.
And Ahimelech - Ahimelech is put here for Abiathar, who was high priest in the days of David. Abiathar had also the name of Ahimelech, as well as his father. See Calmet.
And David distributed them,.... The posterities of Eleazar and Ithamar into certain classes or courses:
both Zadok of the sons of Eleazar, and Ahimelech of the sons of Ithamar; these were the two principal men of the respective families, the one was high priest, and the other "sagan" or deputy; or they both officiated as high priests alternately, until the one was removed in Solomon's time, and the other established alone. And now their brethren the priests, who were under each of these, are the persons David divided into classes:
according to their offices in their service: to perform their office as priests in the service of the temple in their turns.
Zadok . . . and Ahimelech of the sons of Ithamar--This statement, taken in connection with 1-Chronicles 24:6, is not a little perplexing, since (2-Samuel 15:24, 2-Samuel 15:35; 2-Samuel 20:25) Abiathar is mentioned as the person conjoined in David's time with Zadok, in the collegiate exercise of the high priesthood. Some think that the words have been transposed, reading Abiathar, the son of Ahimelech. But there is no ground for regarding the text as faulty. The high priests of the line of Ithamar were the following: Ahiah or Ahimelech, his son Abiathar, his son Ahimelech. We frequently find the grandfather and grandson called by the same name (see list of high priests of the line of Eleazar, 1-Chronicles 6:30-41). Hence the author of the Chronicles was acquainted with Ahimelech, son of Abiathar, who, for some reason, discharged the duties of high priest in David's reign, and during the lifetime of his father (for Abiathar was living in the time of Solomon, 1-Kings 2:27) [KEIL].
Distributed - Allotting to each of them several times, wherein they should by turns have the government of holy ministrations.
*More commentary available at chapter level.