King Solomon was inspired by God to say this because King David had taught him to put his trust in God. When he did so, his kingdom was peaceful. In fact, he did not fight wars as his father David did. Dear reader, trusting God with your whole heart and understanding will open doors of opportunity for you. Depend on the Word of God and you will never regret it. God bless you.