and Benaiah and Jahaziel the priests with trumpets continually, before the ark of the covenant of God.
So David gave him the lyrics, and these guys started singing and worshipping the Lord with this song or psalm.