David assembled all Israel at Jerusalem, to bring up the ark of Yahweh to its place, which he had prepared for it.
Now on that day David delivered first this psalm to thank the LORD into the hand of Asaph and his brethren ( 1 Chronicles 16:7 ).