You asserted that the temple was built because David misinterpreted God's message to him. However this is a faulty argument given the entire context of 2 Samuel 7. David had it in his mind to build a physical house for The Lord in the first three verses of 2 Samuel 7, well before God revealed later in the chapter that David's progeny would eventually build an everlasting spiritual house. Never in the chapter does God condemn the idea of a physical temple, but instead simply shows that it can only ever be a type pointing Israel to its eventual fulfillment in Jesus' spiritual temple. You might as well claim that God never intended David slay Goliath because it was only a type for Jesus' defeating Sin. Types are INTENDED to foreshadow the antitype.
Isaiah 66:1 (KJV)
1 Thus saith the LORD, The heaven is my throne, and the earth is my footstool: where is the house that ye build unto me? and where is the place of my rest?
Good question since the temple of Solomon was standing at the time.
Acts 7:47-50 (KJV)
47 But Solomon built him an house.
48 Howbeit
the most High dwelleth not in temples made with hands; as saith the prophet,
49 Heaven is my throne, and earth is my footstool: what house will ye build me? saith the Lord: or what is the place of my rest?
50 Hath not my hand made all these things?
2 Samuel 7:1-7 (KJV)
1 And it came to pass, when the king sat in his house, and the LORD had given him rest round about from all his enemies;
2 That the king said unto Nathan the prophet, See now, I dwell in an house of cedar, but the ark of God dwelleth within curtains.
3 And Nathan said to the king, Go, do all that is in thine heart; for the LORD is with thee.
4 And it came to pass that night, that the word of the LORD came unto Nathan, saying,
5 Go and tell my servant David, Thus saith the LORD, Shalt thou build me an house for me to dwell in?
6 Whereas I have not dwelt in any house since the time that I brought up the children of Israel out of Egypt, even to this day, but have walked in a tent and in a tabernacle.
7 In all the places wherein I have walked with all the children of Israel spake I a word with any of the tribes of Israel, whom I commanded to feed my people Israel, saying, Why build ye not me an house of cedar?
Talk about context...
2 Samuel 7:12-13 (KJV)
12 And when thy days be fulfilled, and thou shalt sleep with thy fathers, I will set up
thy seed after thee, which shall proceed out of thy bowels, and I will establish his kingdom.
13
He shall build an house for my name,
and I will stablish the throne of his kingdom for ever.
Solomon's Kingdom forever?
One generation after Solomon his kingdom was split in two. In 586 BCE it was kaput. The kingdom never recovered. The fallen tent of David will be restored in the future (in the new Jerusalem). But Solomon? Nope. Even if you count Judea as Solomonic it ended in 70 CE and was plowed under in 125 CE. The modern state of Israel is not Solomon or David.
So I reiterate that the seed of David's bowels is Jesus Christ referred to in 2 Samuel 7:12-13.
Zechariah 6:12-13 (KJV)
12 And speak unto him, saying, Thus speaketh the LORD of hosts, saying, Behold
the man whose name is The BRANCH; and he shall grow up out of his place, and
he shall build the temple of the LORD:
13 Even
he shall build the temple of the LORD; and
he shall bear the glory, and shall sit and rule upon his throne; and he shall be a priest upon his throne: and the counsel of peace shall be between them both.
Branch = n'tsar (nazarene) Yshua HaNotzri (Jesus the Nazarene)... and until Jesus became a man the King of the Jews and our High Priest... a priest could not reign.
Matthew 16:18 (KJV)
18 And I say also unto thee, That thou art Peter, and upon this rock
I will build my church; and the gates of hell shall not prevail against it.
1 Corinthians 3:16-18 (KJV)
16 Know ye not that
ye are the temple of God, and that the Spirit of God dwelleth in you?
17 If any man defile the temple of God, him shall God destroy; for the temple of God is holy, which temple ye are.
18 Let no man deceive himself. If any man among you seemeth to be wise in this world, let him become a fool, that he may be wise.
1 Peter 2:3-9 (KJV)
3 If so be ye have tasted that the Lord is gracious.
4
To whom coming, as unto a living stone, disallowed indeed of men, but chosen of God, and precious,
5
Ye also, as lively stones, are built up a spiritual house, an holy priesthood, to offer up spiritual sacrifices, acceptable to God by Jesus Christ.
6 Wherefore also it is contained in the scripture, Behold, I lay in Sion a chief corner stone, elect, precious: and he that believeth on him shall not be confounded.
7 Unto you therefore which believe he is precious: but unto them which be disobedient,
the stone which the builders disallowed, the same is made the head of the corner,
8 And a stone of stumbling, and a rock of offence, even to them which stumble at the word, being disobedient: whereunto also they were appointed.
9 But ye are a chosen generation, a royal priesthood, an holy nation, a peculiar people; that ye should shew forth the praises of him who hath called you out of darkness into his marvellous light:
The tabernacle was prophetic of the Church (the Temple of God).