When the king had settled into his palace and the LORD had given him rest on every side from all his enemies, 