Then he called for Solomon his son, and charged him to build a house for Yahweh, the God of Israel.
"David charged him (Solomon) to build a house for Jehovah"  (1 Chronicles 22:6,11).  Throughout the Bible, the principle that one actually does what he commands others to do is fully established; and in this command, David went beyond God's Word.