Now it came to pass, &c. This whole chapter is explained 2 Samuel 7., where the same things are recorded with very little variation of the words.
Related Commentaries of 1 Chronicles 17:1
1 Chronicles 17:1
1 Now it came to pass, as David sat in his house, that David said to Nathan the prophet, Lo, I dwell in an house of cedars, but the ark of the covenant of the LORD remaineth under curtains.