[David] made him houses in the city of David; and he prepared a place for the ark of God, and pitched for it a tent.
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 ).