If Solomon claimed that All is vanity in this earth in the Book of Ecclesiastes, what's our purpose of living our lives on this earth?
That's what he tells you at the end of the book:
Ecclesiastes 12:13-14 NKJV
The idea in Ecclesiastes is that Solomon, being the richest man on earth at the time, tried every pursuit that people might seek for happiness and contentment in and found them all lacking, all vanity, all worthless, except for serving God.
I was just thinking about that. Then I remembered I Corinthians 7:19 NET
Here Paul was talking about people having an OT vs Christ battle. But Paul reminds them that since the begging God wanted us to obey him. People were complaining about the OT laws and burnt offerings but the Blood of Christ got away with that so it only remains to obey God. That is all that matters - to obey God. Who else can believe in me (besides my mom).
Like Solomon and Paul said what's the difference between having and not having, Philippians 4:12 NET
I hope i answered your question...
... what matters is who we are for each other
... it's not about what you have. it's about who you have.
In addition to the answers above I would like to add, that once we are saved we have a job assigned to us by Christ, which is known as the great commission.
Mar 16:15 through 18 King James translation
Jesus did not intend that we just live out the rest of our lives on Earth enjoying, his grace and his creation. We are commissioned to gather as many souls into the Kingdom as we can, whether it be only one or thousands as Billy Graham has done. and if we do that we can expect to say:
Matthew 25:21 KJV
All is vanity means than nothing in this world can give real pleasure. Solomon wrote that he tasted all can be tasted and found that all this is vanity. He wrote this to warn us not to follow all this vanity. Our main task on this earth is to found God.
There are many times that I walk around my house saying, "Stupid, Stupid, its all so stupid". My wife may think I am depressed until she hears the real quest I am pursuing - "Where have I put my car keys?"
For a thousand years or so we have misunderstood Kohelet (the writer of Ecclesiastes) for although he opens with "Futile, completely futile, all (that we do) is futile" he then states his theme question (which he repeats throughout the text) - "What lasting benefit can we gain from all our hard work upon this earth?" This is his one and only purpose for writing his book. Kohelet has given us a theology of work that is framed within the context of a world that God has twisted and broken to drive humans back to Himself. God said "by the sweat of your brow you shall eat bread" but mankind refused to accept God's design and said "No, by the sweat of my brow I will get ahead!" Mankind pursues wealth, education, politics, justice and even wisdom in an effort to get ahead. Kohelet explores all those avenues and comes back to tell us that all of those pursuits is truly as futile as chasing after the wind for God has ordained that none of these human activities can provide any lasting gain.
Strangely enough, these exact same things can be a great blessing in our day to day enjoyment of God's creation. This is why Kohelet will tells us that when he pursued wisdom he discovered there was always more to know, that wisdom brought sorrow and ultimately that even the wise die - "when I made it my goal to be wise, wisdom eluded me." He points out that the pursuit of wisdom cannot provide a lasting gain but goes on to tell us that as a gift on our journey, "the wise can see where they are going" and "wisdom preserves the lives of those who possess it."
It is this contrast between pursuing something as an end in itself and enjoying it as a daily gift that we often miss in Kohelet. It is a very eastern view of like, like Tevye in "Fiddler on the Roof" where "this hand" is contrasted with "on the other hand".
Kohelet has a great deal to teach us about living in God's creation and his conclusions are full of joy. Unfortunately, many centuries of incorrect interpretation and flawed traditions have all but buried his work. Ecclesiastes truly has become the "lost book of the Bible."
I have been studying Kohelet for the past 30 years and have recently finished a new translation, memorized it and now travel to perform wherever there are those who want to understand the incredible wisdom of Kohelet. People are finding that for a book that is over 2000 years old, what he wrote is still “honest and true.”