Hi Weakness - That's an interesting question. When we look at that passage in 2 Samuel 7, we find that David wants to build a temple, yet God tells Nathan the prophet to tell David this: "Would you build a house for Me to dwell in? For I have not dwelt in a house since the time that I brought the children of Israel up from Egypt, even to this day, but have moved about in a tent and in a tabernacle." Moreover, He said that wherever He went with the children of Israel did He ever command them to build for Him a house of cedar?... in verses 12-16, God further establishes a covenant with David that through his seed, God's house will be built and the house and the kingdom shall be established forever... He will be His Father and He will be His Son.
It is clear to me that the above passage indicates that God was already making a mention of His plans of the REAL temple... which is in His Son, Jesus Christ. David might not have understood this, hence the reason his son, Solomon built a temple.
We get a glimpse of this too, in Acts 7:44-50, where Stephen is telling those around him what God's true tabernacle is. The Israelites had the tabernacle, made according to the exact instructions from God as given to Moses. Stephen goes on to say that David wanted to build God a house, but Solomon built Him a house. Then Stephen quotes Isaiah:
"However, the Most High does not dwell in temples made with hands, as the prophet says:
'Heaven is My throne,
And earth is My footstool.
What house will you build for Me? says the Lord,
Or what is the place of My rest?
Has My hand not made all these things?' "
It's like God is saying... hey guys.... I made you and everything that is in the world... and yet you will think that you can make me a house to dwell in?... He is also saying here that He Himself will build the temple, through His Son, Jesus Christ. And we are living temples as the body of Christ, being built up together for the Glory of God. God dwells in those who belong to Him and obey Him. "Jesus answered and said to him, "If anyone loves Me, he will keep My word; and My Father will love him, and We will come to him and make Our home with him. He who does not love Me does not keep My words; and the word which you hear is not Mine but the Father's who sent Me." - John 14:23-24