17
Once David had settled into his palace, he spoke to the prophet Nahum. “Look,” he said, “I'm living in a cedar palace while the Ark of the Lord's Agreement is kept in a tent!”
“Do what you think you should, for the God is with you,” Nathan replied.
But that night God told Nathan, “Go and talk to my servant David. Tell him, this is what the Lord says, You are not to build a house for me to live in. I have not lived in a house from the time I led Israel out of Egypt*“Out of Egypt”: implied—these words are not in the Hebrew text. until now. I have lived in tents, moving from place to place. But in all those travels with all of Israel did I ever ask any Israelite leader I'd ordered to take care of my people, ‘Why haven't you built a cedar house for me?’ So then, go and tell my servant David this is what the Lord Almighty says. It was me who took you from the fields, from looking after sheep, to become a leader of my people Israel. I have been with you wherever you've gone. I have struck down all your enemies right in front of you, and I will make your reputation as great as the most famous people on earth. I will choose a place for my people Israel. I will settle them there and they won't be disturbed anymore. Evil people won't persecute them as they used to, 10 from the time I placed judges in charge of my people. I will defeat all of your enemies.
Also I want to make it clear that I the Lord will build a house for you.In other words, the Lord would build a “house” for David in the sense of establishing a royal dynasty. 11 For when you come to the end of your life and join your ancestors in death, I will bring to power one of your descendants, one of your sons, and make sure his kingdom is successful. 12 He will be the one to build me a house, and I will make sure his kingdom lasts forever. 13 I will be a father to him, and he will be a son to me. I will never take away my kindness and love from him, as I did in the case of the one who ruled before you. 14 I will put him in charge of my house and my kingdom forever, and his dynasty will last forever.” 15 This is what Nathan explained to David—everything he was told in this divine revelation.
16 Then King David went and sat down in the presence of the Lord. He prayed, “Who am I, Lord God, and what is significant about my family, that you have brought me to this place? 17 God, you talk as if this was a small thing in your eyes, and you also have spoken about the future of my house, my family dynasty.“My family dynasty”: explaining the meaning of “house” in this context. You also see me as someone very important, Lord God.
18 What more can I, David, say to you for honoring me in this way? You know your servant all too well! 19 Lord, you're doing all this for me, your servant, and because it's what you want—doing all these amazing things and letting people know about them.
20 Lord, there really is no-one like you; there is no other God, only you. We have never heard about anyone else. 21 Who else is as fortunate as your people Israel? Who else on earth did God go and redeem to make his own people? You gained a wonderful reputation for yourself by all the tremendous, amazing things you did in driving out other nations before your people as you redeemed them from Egypt. 22 You made your people Israel your own forever, and you, Lord, have become their God.
23 So now, Lord, please ensure that what you have said about me and my house happens, and lasts forever. Please do as you have promised, 24 and may your true nature be recognized and honored forever, with people declaring, ‘The Lord Almighty, the God of Israel, is Israel's God!’ May the house of your servant David continue to be there in your presence.
25 You, my God, have explained to me, your servant, that you will build me a house. That's why your servant has had the courage to pray to you. 26 For you, Lord, are God! You are the one who has promised all these good things to your servant. 27 So now, please bless your servant's house that it may continue in your presence forever. For when you bless, Lord, it is blessed forever.”

*17:5 “Out of Egypt”: implied—these words are not in the Hebrew text.

17:10 In other words, the Lord would build a “house” for David in the sense of establishing a royal dynasty.

17:17 “My family dynasty”: explaining the meaning of “house” in this context.