We know for certain that Solomon was both the richest and wisest man that ever lived. Since he had a harem of 1000 women, it is safe to purport that he would at least be a contender for the title of all-time-greatest hedonist. Perhaps the main thesis of Ecclesiastes is that Solomon concluded that without God, everything is futile and meaningless in the end. So many times, Solomon mentions that everything was simply striving after the wind and he was undoubtedly the most successful man by the world’s standards that has lived or ever will live. In retrospect, after completion of the book at hand, the reader may conclude that Ecclesiastes records, reflects and laments upon the greatest tragedy of all of history.
Ecclesiastes 12:9 And besides that Koheleth was wise, he also taught the people knowledge; yea, he pondered, and sought out, and set in order many proverbs. 10 Koheleth sought to find out words of delight, and that which was written uprightly, even words of truth. 11 The words of the wise are as goads, and as nails well fastened are those that are composed in collections; they are given from one shepherd. 12 And furthermore, my son, be admonished: of making many books there is no end; and much study is a weariness of the flesh. 13 The end of the matter, all having been heard: fear God, and keep His commandments; for this is the whole man. 14 For God shall bring every work into the judgment concerning every hidden thing, whether it be good or whether it be evil. (JPS) (Emphasis added)