So the priests and the Levites sanctified themselves to bring up the ark of Yahweh, the God of Israel.
So David gave him the lyrics, and these guys started singing and worshipping the Lord with this song or psalm.