But David had brought up the ark of God out of the city of Kiriath-jearim; for David had prepared a place for it, for he had pitched a tabernacle for it in Jerusalem.