Passage
And it came to pass, when the king dwelt in his house, and Jehovah had given him rest from all his enemies round about,
And it came to pass, when the king dwelt in his house, and Jehovah had given him rest from all his enemies round about,
2 Samuel 7:1 And it came to pass, when the king dwelt in his house, and Jehovah had given him rest from all his enemies round about,
2 Samuel 7:2 that the king said unto Nathan the prophet, See now, I dwell in a house of cedar, but the ark of God dwelleth within curtains.
2 Samuel 7:3 And Nathan said to the king, Go, do all that is in thy heart; for Jehovah is with thee.
The verse centers on "came", "pass", "king", "dwelt", "house", "jehovah", "given", and "rest". It is saying that the verse draws attention to "came" and "pass", so its meaning should be read from those terms before moving to application.
The next verse adds "that the king said unto Nathan the...", so "came" and "pass" should be read forward into that movement. In 2 Samuel context, the local focus is covenant, worship, and faithfulness.
A plain takeaway is to answer the verse's own emphasis on "came" and "pass" with trust shaped by these words, not by a vague optimism outside the passage.