After the king had settled into his palace and the LORD had given him rest from all his enemies around him,
Here is, I. David at rest. He sat in his house (Sa2 7:1), quiet and undisturbed, having no occasion to take the field: The Lord had given him rest round about, from all those that were enemies to his settlement in the throne, and he set himself to enjoy that rest. Though he was a man of war, he was for peace (Psa 120:7) and did not delight in war.
Commenting on 2 Samuel 7:1-3
And it came to pass, when the king sat in his house,.... Which Hiram's servants had built for him, having no occasion to go out to war: and the Lord had given him rest round about from all his enemies; both at home and abroad; though this rest and peace did not last long; for the next chapter gives an account of each of the...
Therefore Michal the daughter of Saul had no child unto the day of her death. (l) Which was a punishment because she mocked the servant of God.