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? 8 Now therefore so shalt thou say unto my servant David, Thus saith the LORD of hosts, I took thee from the sheepcote, from following the sheep, to be ruler over my people, over Israel: 9 And I was with thee whithersoever thou wentest, and have cut off all thine enemies out of thy sight, and have made thee a great name, like unto the name of the great men that are in the earth. 10 Moreover I will appoint a place for my people Israel, and will plant them, that they may dwell in a place of their own, and move no more; neither shall the children of wickedness afflict them any more, as beforetime, 11 And as since the time that I commanded judges to be over my people Israel, and have caused thee to rest from all thine enemies. Also the LORD telleth thee that he will make thee an house. 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. 14 I will be his father, and he shall be my son. If he commit iniquity, I will chasten him with the rod of men, and with the stripes of the children of men: 15 But my mercy shall not depart away from him, as I took it from Saul, whom I put away before thee. 16 And thine house and thy kingdom shall be established for ever before thee: thy throne shall be established for ever. 17 According to all these words, and according to all this vision, so did Nathan speak unto David. 18 Then went king David in, and sat before the LORD, and he said, Who am I, O Lord GOD? and what is my house, that thou hast brought me hitherto? 19 And this was yet a small thing in thy sight, O Lord GOD; but thou hast spoken also of thy servant's house for a great while to come. And is this the manner of man, O Lord GOD? 20 And what can David say more unto thee? for thou, Lord GOD, knowest thy servant. 21 For thy word's sake, and according to thine own heart, hast thou done all these great things, to make thy servant know them. 22 Wherefore thou art great, O LORD God: for there is none like thee, neither is there any God beside thee, according to all that we have heard with our ears. 23 And what one nation in the earth is like thy people, even like Israel, whom God went to redeem for a people to himself, and to make him a name, and to do for you great things and terrible, for thy land, before thy people, which thou redeemedst to thee from Egypt, from the nations and their gods? 24 For thou hast confirmed to thyself thy people Israel to be a people unto thee for ever: and thou, LORD, art become their God. 25 And now, O LORD God, the word that thou hast spoken concerning thy servant, and concerning his house, establish it for ever, and do as thou hast said. 26 And let thy name be magnified for ever, saying, The LORD of hosts is the God over Israel: and let the house of thy servant David be established before thee. 27 For thou, O LORD of hosts, God of Israel, hast revealed to thy servant, saying, I will build thee an house: therefore hath thy servant found in his heart to pray this prayer unto thee. 28 And now, O Lord GOD, thou art that God, and thy words be true, and thou hast promised this goodness unto thy servant: 29 Therefore now let it please thee to bless the house of thy servant, that it may continue for ever before thee: for thou, O Lord GOD, hast spoken it: and with thy blessing let the house of thy servant be blessed for ever.
[AD 604] Gregory the Dialogist on 2 Samuel 7:3
The spirit of prophecy does not enlighten the minds of the prophets constantly, Peter. We read in sacred Scripture that the Holy Spirit breathes where he pleases, and we should also realize that he breathes when he pleases. For example, when King David asked whether he could build a temple, the prophet Nathan gave his consent but later had to withdraw it.

[AD 258] Cyprian on 2 Samuel 7:5
That Christ should be the house and temple of God, and that the old temple should cease, and the new one should begin. In the second book of Kings [Samuel]: “And the word of the Lord came to Nathan, saying, ‘Go and tell my servant David, Thus says the Lord, You shall not build me a house to dwell in; but it shall be, when your days are fulfilled, and you sleep with your fathers, that I will raise up your seed after you, which shall come from your body, and I will prepare his kingdom. He shall build me a house in my name, and I will raise up his throne forever; and I will be a father to him, and he shall be a son to me, and his house shall obtain faith, and his kingdom [will be] forever in my sight.’ ” Also in the Gospel the Lord says, “There shall not be left in the temple one stone upon another that shall not be thrown down.” And “After three days another shall be raised up without hands.”

[AD 220] Tertullian on 2 Samuel 7:12-13
That new dispensation, then, which is found in Christ now, will prove to be what the Creator then promised under the appellation of “the sure mercies of David,” which were Christ’s, inasmuch as Christ sprang from David, or rather his very flesh itself was David’s “sure mercies,” consecrated by religion, and “sure” after its resurrection. Accordingly the prophet Nathan, in the first [book] of Kings [Samuel], makes a promise to David for his seed, “which shall proceed,” he says, “from your own body.” Now, if you explain this simply of Solomon, you will send me into a fit of laughter. For David will evidently have brought forth Solomon! But is not Christ here designated the seed of David, as of that womb which was derived from David, that is, Mary’s? Now, because Christ rather than any other was to build the temple of God, that is to say, a holy manhood, wherein God’s Spirit might dwell as in a better temple, Christ rather than David’s son Solomon was to be looked for as the Son of God. Then, again, the throne forever with the kingdom forever is more suited to Christ than to Solomon, a mere temporal king.

[AD 379] Basil of Caesarea on 2 Samuel 7:12-13
However, the tribe of Judah did not fail until he came for whom it was reserved, who did not himself sit upon a material throne, for the kingdom of Judea had now been transferred to Herod, the son of Antipater, the Ascalonite, and to his sons, who divided Judea into four provinces when Pilate was governor and Tiberius held the power over the whole Roman province. But his indestructible kingdom he calls the throne of David on which the Lord sat. He himself is “the expectation of nations,” not of the least part of the world. “For there will be the root of Jesse,” it is said, “and he who rises up to rule the Gentiles, in him the Gentiles will hope.” “For I have placed you for a covenant of the people, for a light of the Gentiles.” “And I shall establish,” it is said, “his seed forever, and his throne as the days of the heavens.”

[AD 1781] Richard Challoner on 2 Samuel 7:12
I will establish his kingdom: This prophecy partly relateth to Solomon: but much more to Christ, who is called the son of David in scripture, and who is the builder of the true temple, which is the church, his everlasting kingdom, which shall never fail.
[AD 69] Hebrews on 2 Samuel 7:14
For unto which of the angels said he at any time, Thou art my Son, this day have I begotten thee? And again, I will be to him a Father, and he shall be to me a Son? [2 Samuel 7:14] And again, when he bringeth in the firstbegotten into the world, he saith, And let all the angels of God worship him. And of the angels he saith, Who maketh his angels spirits, and his ministers a flame of fire. But unto the Son he saith, Thy throne, O God, is for ever and ever: a sceptre of righteousness is the sceptre of thy kingdom. Thou hast loved righteousness, and hated iniquity; therefore God, even thy God, hath anointed thee with the oil of gladness above thy fellows. And, Thou, Lord, in the beginning hast laid the foundation of the earth; and the heavens are the works of thine hands: They shall perish; but thou remainest; and they all shall wax old as doth a garment; And as a vesture shalt thou fold them up, and they shall be changed: but thou art the same, and thy years shall not fail. But to which of the angels said he at any time, Sit on my right hand, until I make thine enemies thy footstool? Are they not all ministering spirits, sent forth to minister for them who shall be heirs of salvation?
[AD 165] Justin Martyr on 2 Samuel 7:14-15
It would be much better for you, therefore, if, instead of being so contentious, you should repent before the great day of judgment comes, for then, as I showed from Scripture, all those of your tribes who crucified Christ shall lament. Now, I have explained the meaning of the words “The Lord swore, [you are a priest forever] according to the order of Melchizedek.” I have also shown that the prophecy of Isaiah, “His burial has been taken away from the midst,” referred to Christ, who was to be buried and to rise again. I have stated at length that this same Christ will be the judge of both the living and the dead. Further, Nathan spoke thus of him to David, “I will be his Father, and he shall be my Son, and I will not take my mercy away from him, as I did from those who were before him; and I will establish him in my house, and in his kingdom forever.” And Ezekiel states that he shall be the only prince in this house, for he is the Son of God. And do not suppose that Isaiah or the other prophets speak of sacrifices of blood or libations being offered on the altar at his second coming, but only of true and spiritual praises and thanksgivings.

[AD 345] Aphrahat the Persian Sage on 2 Samuel 7:14-15
Again, listen concerning the title Son of God, by which we have called him. They [the Jews] say that “though God has no son, you make that crucified Jesus, the firstborn son of God.” Yet he called Israel “my firstborn” when he sent to Pharaoh through Moses and said to him, “Israel is my firstborn; I have said to you, let my son go to serve me, and if you are not willing to let (him) go, lo! I will slay your son, your firstborn.” And also through the prophet he testified concerning this and reproved them and said to the people, “Out of Egypt have I called my son. As I called them, so they went and worshiped Baal and offered incense to the graven images.” And Isaiah said concerning them, “Children have I reared and brought up, and they have rebelled against me.” And again it is written, “You are the children of the Lord your God.” And about Solomon he said, “He shall be a son to me, and I will be a Father to him.” So also we call the Christ “the Son of God” because through him we have gained the knowledge of God; even as he called Israel my firstborn son and as he said concerning Solomon, “He shall be a son to me.”

[AD 430] Augustine of Hippo on 2 Samuel 7:18-29
David, understanding this, says in the second book of Kings [Samuel] … “You did also speak of the house of your servant for a long time to come.” And, further on, “And now begin and bless the house of your servant that it may endure forever,” etc. At that time, David was about to beget his son through whom his lineage would be carried down to Christ; through whom, in turn, his house was to be everlasting—indeed, identified with the house of God. It was to be called the “house of David” because [it was] of David’s stock and, simultaneously, the “house of God” because it was a temple to God made not of stones but of people. In this house God’s people shall everlastingly dwell with their God and in their God, and God with his people and in his people, God filling his people, his people filled with their God, so that “God may be all in all”—the very same God being their prize in peace who was their strength in battle.It was with this in view that, when Nathan had said, “And the Lord said to you, that you shall build him a house,” David said further on, “Because you, O Lord of hosts, God of Israel, have revealed to the ear of your servant, saying, ‘I will build you a house.’ ” This is a house which we build by living virtuously and which God builds by helping us to live virtuously, for “unless the Lord builds the house, those who build it labor in vain.”
Only, however, when this house receives its final consecration will the words God spoke by Nathan’s lips come true: “And I will appoint a place for my people Israel, and I will plant them, and they shall dwell therein, and shall be disturbed no more: neither shall the children of iniquity afflict them any more as they did before, from the day that I appointed judges over my people Israel.”