At the end of Ecclesiastes 12: 13-14, Solomon search for meaning by concluding that the whole purpose for man's existence is to fear God and keep His commandments. That is because God will bring into judgment everything we have done.