ECC 9: 14 There is something else meaningless that occurs on earth: righteous men who get what the wicked deserve, and wicked men who get what the righteous deserve. This too, I say, is meaningless. 15 So I commend the enjoyment of life, because nothing is better for a man under the sun than to eat and drink and be glad. Then joy will accompany him in his work all the days of the life God has given him under the sun.
16 When I applied my mind to know wisdom and to observe man's labor on earth—his eyes not seeing sleep day or night- 17 then I saw all that God has done. No one can comprehend what goes on under the sun. Despite all his efforts to search it out, man cannot discover its meaning. Even if a wise man claims he knows, he cannot really comprehend it.
13 Now all has been heard;
here is the conclusion of the matter:
Fear God and keep his commandments,
for this is the whole duty of man.
14 For God will bring every deed into judgment,
including every hidden thing,
whether it is good or evil.
ECCLISASTES can make for a great philosphy discussion, NIV is the easiest read for anyone who hasnt read it yet...