God's Covenant with David

71 It happened, when the king lived in his house, and Yahweh had given him rest from all his enemies all around, 2 that the king said to Nathan the prophet, “See now, I dwell in a house of cedar, but the ark of God dwells within curtains.” 3 Nathan said to the king, “Go, do all that is in your heart; for Yahweh is with you.”

Matthew Henry's Commentary on 2 Samuel 7:1-3

Commentary on 2 Samuel 7:1-3

(Read 2 Samuel 7:1-3)

David being at rest in his palace, considered how he might best employ his leisure and prosperity in the service of God. He formed a design to build a temple for the ark. Nathan here did not speak as a prophet, but as a godly man, encouraging David by his private judgment. We ought to do all we can to encourage and promote the good purposes and designs of others, and, as we have opportunity, to forward a good work.