2 Samuel 7:1-5
God’s Covenant With David
7 Now when the king settled into his house and the Lord had given him rest from all of his enemies on all sides, 2 the king said to Nathan the prophet, “I am dwelling in a cedar house, but the ark of God is sitting in a tent.”
3 Nathan said to the king, “Go, do all that is in your heart because the Lord is with you.”
4 That night the word of the Lord came to Nathan:
5 Go and say to My servant David: Thus says the Lord: Do you intend to build a house for Me in which I will dwell?
2 Samuel 7:8-12
8 Now therefore, you will say to My servant David: Thus says the Lord of Hosts: I took you from the pasture, from following after the sheep, to be ruler over My people Israel. 9 I have been with you wherever you have gone, and I have cut off all of your enemies before you. I will make your name great, like the great ones across the land. 10 Moreover, I will appoint a place for My people Israel. I will plant them, and they will dwell in that very place. They will be restless no longer, and the unjust will no longer oppress them, as in former times, 11 ever since the day in which I appointed judges over My people Israel. I will give you rest from all of your enemies.
The Lord declares to you that He will instead bring about a house for you. 12 When your days are complete and you lie down with your fathers, I will raise up after you an offspring from your body, and I will establish his rule.
2 Samuel 7:14
14 I will be a father to him, and he will be a son to Me. When he goes astray, I will correct him with the rod of men and afflictions of the sons of men.
2 Samuel 7:16
16 Your house and dominion will endure before Me forever, and your throne will be established by the Lord forever.