And your name will be magnified forever, saying, ‘The LORD of hosts is God over Israel,’ and the house of your servant David will be established before you.
We have here the solemn address David made to God, in answer to the gracious message God had sent him. We are not told what he said to Nathan; no doubt he received him very kindly and respectfully as God's messenger. But his answer to God he took himself, and did not send by Nathan.
Commenting on 2 Samuel 7:18-29
And let thy name be magnified for ever,.... David desired the performance of the above things not so much for his own sake, and for the sake of his family, as for the glory of God; his great concern was, that God might be magnified, and his greatness displayed, in making him and his family great; and particularly that he might be magnified and glorified...
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. (n) This prayer is most effective when we chiefly seek God's glory, and the accomplishment of his promise.