When the king was settled in his palace, and the Lord had given him rest from all his surrounding enemies,