Then Nathan said unto David, Do all that is in thine heart; for God is with thee.
David was troubled by the contrast between his own dwelling in a fine palace and the ark of God remaining in the tabernacle. Out of remorse over that contrast he formed the desire to build a temple for God. When the desire was laid before him, Nathan at first encouraged David to do all that was in his heart, on the ground that God was with him. God, however, had another task for David, and had chosen Solomon instead to build the temple.
David was troubled by the contrast between his own dwelling in a fine palace and the ark of God remaining in the tabernacle. Out of remorse over that contrast he formed the desire to build a temple for God. When the desire was laid before him, Nathan at first encouraged David to do all that was in his heart, on the ground that God was with him. God, however, had another task for David, and had chosen Solomon instead to build the temple.