After the king had taken up residence in his house, and the Lord had given him rest from his enemies on every side,