David and the chiefs of the service also set apart for the service the sons of Asaph, and of Heman, and of Jeduthun, who prophesied with lyres, with harps, and with cymbals. The list of those who did the work and of their duties was: Of the sons of Asaph: Zaccur, Joseph, Nethaniah, and Asharelah, sons of Asaph, under the direction of Asaph, who prophesied under the direction of the king. —1 Choronicles 25
Some help in understanding, from the ESV Study Bible:
David and the leaders of the Levites divided the musicians into the three family groups of Asaph, Jeduthun, and Heman (see 6:31–47), who prophesied with musical instruments, i.e., wrote songs. In some cases, their songs seem to have become part of OT Scripture, for Asaph is named in the titles of Psalms 50 and 73–83, and Jeduthun in the titles of Psalms 39, 62, and 77. In addition, Heman here may be the same person as Heman the Ezrahite named in the title of Psalm 88 (cf. also 1 Chron. 6:33). The verb “to prophesy” (Hb. naba’) indicates that their songs were prompted or guided by the Spirit of God. This shows that “prophecy” is not always a direct announcement of God’s plans; it indicates that the person is operating as God’s authorized spokesman, here providing the right way for God’s people to sing to him (they prophesied … in thanksgiving and praise to the Lord, 25:3).