2 he said to Nathan the prophet, "Here I am, living in a house of cedar, while the ark of God remains in a tent."
7 David said to Solomon: "My son, I had it in my heart to build a house for the Name of the Lord my God.
(Read 1 Chronicles 22:6-16)
David gives Solomon the reason why he should build the temple. Because God named him. Nothing is more powerful to engage us in any service for God, than to know that we are appointed thereto. Because he would have leisure and opportunity to do it. He should have peace and quietness. Where God gives rest, he expects work. Because God had promised to establish his kingdom. God's gracious promises should quicken and strengthen our religious service. David delivered to Solomon an account of the vast preparations he had made for this building; not from pride and vain-glory, but to encourage Solomon to engage cheerfully in the great work. He must not think, by building the temple, to purchase a dispensation to sin; on the contrary, his doing that would not be accepted, if he did not take heed to fulfil the statutes of the Lord. In our spiritual work, as well as in our spiritual warfare, we have need of courage and resolution.
Matthew Henry's Commentary on 2 Samuel 7:2
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.