Through Nathan, God questioned the idea that David would build him a house and reminded him that he had not asked for such a house while traveling with Israel. The message redirects the plan and focuses on what God would do for David. See 2 Samuel 7:4–7.
In 2 Samuel 7:4–7, God interrupts David’s building plan by speaking to Nathan that very night. Nathan is sent back to David with a sharp question: is David really the one to build God a “house”? God then explains why the question matters. This paragraph follows David’s expressed desire to build a permanent temple-like structure after settling in his own cedar house (the conversation immediately before this unit).
These verses present a quick reversal: Nathan had voiced support for David’s idea, but God speaks “that night” and sends Nathan back with a new message (verses 4–5). The text makes a clear distinction between a prophet’s initial judgment and a direct word from Yahweh.
A careful answer keeps the immediate passage, the book's argument, and the whole-Bible storyline together, so the question is answered in context instead of as a detached idea.
Start with 2 Samuel 7:4-7, then read the surrounding section so the answer stays connected to the passage's flow.
4It happened the same night, that the word of Yahweh came to Nathan, saying,
5Go and tell my servant David, Thus says Yahweh, Shall you build me a house for me to dwell in?
6for I have not lived in a house since the day that I brought up the children of Israel out of Egypt, even to this day, but have walked in a tent and in a tent.
7In all places in which I have walked with all the children of Israel, spoke I a word with any of the tribes of Israel, whom I commanded to be shepherd of my people Israel, saying, Why have you not built me a house of cedar?