I will appoint a place for my people Israel, and will plant them, so that they may live in their own place, and be disturbed no more; and evildoers shall wear them down no more, as they did formerly,
from the time that I appointed judges over my people Israel; and I will subdue all your enemies. Moreover I declare to you that the Lord will build you a house.
When your days are fulfilled to go to be with your ancestors, I will raise up your offspring after you, one of your own sons, and I will establish his kingdom.
He shall build a house for me, and I will establish his throne forever.
I will be a father to him, and he shall be a son to me. I will not take my steadfast love from him, as I took it from him who was before you,
but I will confirm him in my house and in my kingdom forever, and his throne shall be established forever.
In accordance with all these words and all this vision, Nathan spoke to David.
Then King David went in and sat before the Lord, and said, "Who am I, O Lord God, and what is my house, that you have brought me thus far?
And even this was a small thing in your sight, O God; you have also spoken of your servant's house for a great while to come. You regard me as someone of high rank, O Lord God!
References for 1 Chronicles 17:17
And what more can David say to you for honoring your servant? You know your servant.
For your servant's sake, O Lord, and according to your own heart, you have done all these great deeds, making known all these great things.