When the king sat in his house - That is, when he became resident in the palace which Hiram, king of Tyre, had built for him.
And the Lord had given him rest - This was after he had defeated the Philistines, and cast them out of all the strong places in Israel which they had possessed after the overthrow of Saul; but before he had carried his arms beyond the land of Israel, against the Moabites, Syrians, and Idumeans. See 2Sa 8:1-14.