Ecclesiastes 2:1-3 KJVS
“I said in mine heart, Go to now, I will prove thee with mirth, therefore enjoy pleasure: and, behold, this also is vanity.  I said of laughter, It is mad: and of mirth, What doeth it?  I sought in mine heart to give myself unto wine, yet acquainting mine heart with wisdom; and to lay hold on folly, till I might see what was that good for the sons of men, which they should do under the heaven all the days of their life.”
Solomon went forth and gave himself unto wine and layed hold of the folly of the flesh to see what good can come from it, while guiding his heart with wisdom that is from above.
Ecclesiastes 2:4-9 KJVS
“I made me great works; I builded me houses; I planted me vineyards:  I made me gardens and orchards, and I planted trees in them of all kind of fruits:  I made me pools of water, to water therewith the wood that bringeth forth trees:  I got me servants and maidens, and had servants born in my house; also I had great possessions of great and small cattle above all that were in Jerusalem before me:  I gathered me also silver and gold, and the peculiar treasure of kings and of the provinces: I gat me men singers and women singers, and the delights of the sons of men, as musical instruments, and that of all sorts.  So I was great, and increased more than all that were before me in Jerusalem: also my wisdom remained with me.”
Solomon built up great riches for himself on earth, while wisdom that was from above remained with him.
Ecclesiastes 2:10-11 KJVS
“And whatsoever mine eyes desired I kept not from them, I withheld not my heart from any joy; for my heart rejoiced in all my labour: and this was my portion of all my labour.  Then I looked on all the works that my hands had wrought, and on the labour that I had laboured to do: and, behold, all was vanity and vexation of spirit, and there was no profit under the sun.”
Having the true riches inside him, he understood that knowledge and wisdom from God was the true profit that one can obtain under the sun.
Let’s take a look at what is truly profitable in Proverbs Chapter 3.
Proverbs 3:13-17 KJVS
“Happy is the man that findeth wisdom, and the man that getteth understanding.  For the merchandise of it is better than the merchandise of silver, and the gain thereof than fine gold.  She is more precious than rubies: and all the things thou canst desire are not to be compared unto her.  Length of days is in her right hand; and in her left hand riches and honour.  Her ways are ways of pleasantness, and all her paths are peace.”
Ecclesiastes 2:12-13 KJVS
“And I turned myself to behold wisdom, and madness, and folly: for what can the man do that cometh after the king? even that which hath been already done.  Then I saw that wisdom excelleth folly, as far as light excelleth darkness.”
What is Light?
John 1:1-5 KJVS
“In the beginning was the Word, and the Word was with God, and the Word was God.  The same was in the beginning with God.  All things were made by him; and without him was not any thing made that was made.  In him was life; and the life was the light of men.  And the light shineth in darkness; and the darkness comprehended it not.”
Light is from the word who was with God from the beginning and the word is God. The word was made flesh and dwelt among us.
John 1:14 KJVS
“And the Word was made flesh, and dwelt among us, (and we beheld his glory, the glory as of the only begotten of the Father,) full of grace and truth.”
Our Lord Jesus Christ who is full of grace and Truth, in whom we receive all wisdom and knowledge that is from above. His Light is far better than the darkness (obscurity) of this world, that many walk in today.
Look arround you.
Ecclesiastes 2:14 KJVS
“The wise man’s eyes are in his head; but the fool walketh in darkness: and I myself perceived also that one event happeneth to them all.”
One event happens to us all, we die.
Ecclesiastes 2:15 KJVS
“Then said I in my heart, As it happeneth to the fool, so it happeneth even to me; and why was I then more wise? Then I said in my heart, that this also is vanity.”
Why was Solomon wiser than most? Well, if we remember in 1st Kings Chapter 3 verse 9, Solomon asked for an understanding heart to judge Gods people. To serve them.
Ecclesiastes 2:16 KJVS
“For there is no remembrance of the wise more than of the fool for ever; seeing that which now is in the days to come shall all be forgotten. And how dieth the wise man ? as the fool.”
Solomon said in his heart, it is vanity that a wise man is not remembered more than a fool, however wisdom and knowledge from our Heavenly Father lives on through His Living Word when we open up the Bible to escape the weariness (toil) of the flesh.
Ecclesiastes 2:17 KJVS
“Therefore I hated life; because the work that is wrought under the sun is grievous unto me: for all is vanity and vexation of spirit.”
The labor (toil) that is done under the sun is not for the spirit, it is for the flesh that we live in.
Ecclesiastes 2:18 KJVS
“Yea, I hated all my labour which I had taken under the sun: because I should leave it unto the man that shall be after me.”
Again, we cannot take anything of fleshly gain with us when that event happens to us all.
1 Timothy 6:7 KJVS
“For we brought nothing into this world, and it is certain we can carry nothing out.”
Ecclesiastes 2:19 KJVS
“And who knoweth whether he shall be a wise man or a fool? yet shall he have rule over all my labour wherein I have laboured, and wherein I have shewed myself wise under the sun. This is also vanity.
Ecclesiastes 2:20 KJVS
“Therefore I went about to cause my heart to despair of all the labour which I took under the sun.”
Through the wise eyes of Solomons spirit, the labor that he took in for the flesh, caused his heart to despair.
Ecclesiastes 2:21 KJVS
“For there is a man whose labour is in wisdom, and in knowledge, and in equity; yet to a man that hath not laboured therein shall he leave it for his portion. This also is vanity and a great evil.”
At this point of the chapter, Solomon looks at a different kind of labor, and that labor is in wisdom and in knowledge. The man that labors in wisdom and knowledge that is from above is our spiritual body within us.
1 Corinthians 15:44 KJVS
“It is sown a natural body; it is raised a spiritual body. There is a natural body, and there is a spiritual body.”
We have two bodies.
It is the true labor of our spirit that gives us a peaceful path to enter into our Heavenly Fathers rest, while we walk in the flesh.
Hebrews 4:11-12 KJVS
“Let us labour therefore to enter into that rest, lest any man fall after the same example of unbelief.  For the word of God is quick, and powerful, and sharper than any twoedged sword, piercing even to the dividing asunder of soul and spirit, and of the joints and marrow, and is a discerner of the thoughts and intents of the heart.”
Ecclesiastes 2:22-23 KJVS
“For what hath man of all his labour, and of the vexation of his heart, wherein he hath laboured under the sun?  For all his days are sorrows, and his travail grief; yea, his heart taketh not rest in the night. This is also vanity.”
If one doesn’t spiritually labor in that which gives true peace, what is left for them through the labor of the flesh is grief and sorrow.
Let us therefore labor into our Heavenly Fathers rest who is Christ.
Ecclesiastes 2:24 KJVS
“There is nothing better for a man, than that he should eat and drink, and that he should make his soul enjoy good in his labour. This also I saw, that it was from the hand of God.”
From the hand of God, we receive that which is good for our bodies, the flesh and especially the spirit. Our souls enjoy the good of our labor in wisdom and knowledge, while God makes sure that our flesh bodies are taken care of. (Matthew Chapter 6 verses 25 through 34).
Ecclesiastes 2:25 KJVS
“For who can eat, or who else can hasten hereunto, more than I?”
Ecclesiastes 2:26 KJVS
“For God giveth to a man that is good in his sight wisdom, and knowledge, and joy: but to the sinner he giveth travail, to gather and to heap up, that he may give to him that is good before God. This also is vanity and vexation of spirit.”
There is nothing from the travail of the flesh that can fulfill the spirit of one who labors in wisdom, and knowledge from above.
Only through knowledge and wisdom that is given by God from above comes true joy, and that joy is given to a man or woman who labors therein.
Without God we cannot truly find contentment in the flesh that walks under the sun.