David built houses for himself in the city of David, and he prepared a place for the ark of God and pitched a tent for it.
References for 1 Chronicles 15:1
Then David commanded that no one but the Levites were to carry the ark of God, for the Lord had chosen them to carry the ark of the Lord and to minister to him forever.
David assembled all Israel in Jerusalem to bring up the ark of the Lord to its place, which he had prepared for it.
Then David gathered together the descendants of Aaron and the Levites:
of the sons of Kohath, Uriel the chief, with one hundred twenty of his kindred;
of the sons of Merari, Asaiah the chief, with two hundred twenty of his kindred;