King David was living in his palace, and the Lord had given him peace from all his enemies around him.