II Samuel 7:8-21 NKJV
Now therefore, thus shall you say to My servant David, ‘Thus says the LORD of hosts: “I took you from the sheepfold, from following the sheep, to be ruler over My people, over Israel. And I have been with you wherever you have gone, and have cut off all your enemies from before you, and have made you a great name, like the name of the great men who are on the earth. 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; nor shall the sons of wickedness oppress them anymore, as previously, since the time that I commanded judges to be over My people Israel, and have caused you to rest from all your enemies. Also the LORD tells you that He will make you a house.
“When your days are fulfilled and you rest with your fathers, I will set up your seed after you, who will come from your body, and I will establish his kingdom. He shall build a house for My name, and I will establish the throne of his kingdom forever. I will be his Father, and he shall be My son. If he commits iniquity, I will chasten him with the rod of men and with the blows of the sons of men. But My mercy shall not depart from him, as I took it from Saul, whom I removed from before you. And your house and your kingdom shall be established forever before you. Your throne shall be established forever.” ’ ”
According to all these words and according to all this vision, so Nathan spoke to David.
Then King David went in and sat before the LORD; and he said: “Who am I, O Lord GOD? And what is my house, that You have brought me this far? And yet this was a small thing in Your sight, O Lord GOD; and You have also spoken of Your servant’s house for a great while to come. Is this the manner of man, O Lord GOD? Now what more can David say to You? For You, Lord GOD, know Your servant. For Your word’s sake, and according to Your own heart, You have done all these great things, to make Your servant know them.
NKJV: New King James Version