Then on that day David first ordained to give thanks to Yahweh, by the hand of Asaph and his brothers.
So David gave him the lyrics, and these guys started singing and worshipping the Lord with this song or psalm.