I find a lot of encouragement and wisdom from the entire book of Ecclesiastes, one of the books written by King Solomon. It is a cry by someone who had it all (wisdom, fame, power, pleasures, success), and yet his groans are that human existence is meaningless unless it is seen from the context of God.
------
Here are some select verses from Ecclesiastes:
“Everything is meaningless,” says the Teacher, “completely meaningless!” (Ecclesiastes 1:2 NLT)
History merely repeats itself. It has all been done before. Nothing under the sun is truly new. Sometimes people say, “Here is something new!” But actually it is old; nothing is ever truly new. We don’t remember what happened in the past, and in future generations, no one will remember what we are doing now. (Ecclesiastes 1:9-11 NLT)
The greater my wisdom, the greater my grief. To increase knowledge only increases sorrow. (Ecclesiastes 1:18 NLT)
Anything I wanted, I would take. I denied myself no pleasure. I even found great pleasure in hard work, a reward for all my labors. But as I looked at everything I had worked so hard to accomplish, it was all so meaningless—like chasing the wind. There was nothing really worthwhile anywhere. (Ecclesiastes 2:10, 11 NLT)
So I decided there is nothing better than to enjoy food and drink and to find satisfaction in work. Then I realized that these pleasures are from the hand of God. For who can eat or enjoy anything apart from him? God gives wisdom, knowledge, and joy to those who please him. But if a sinner becomes wealthy, God takes the wealth away and gives it to those who please him. This, too, is meaningless—like chasing the wind. (Ecclesiastes 2:24-26 NLT)
Two people are better off than one, for they can help each other succeed. If one person falls, the other can reach out and help. But someone who falls alone is in real trouble. Likewise, two people lying close together can keep each other warm. But how can one be warm alone? A person standing alone can be attacked and defeated, but two can stand back-to-back and conquer. Three are even better, for a triple-braided cord is not easily broken. (Ecclesiastes 4:9-12 NLT)
As you enter the house of God, keep your ears open and your mouth shut. It is evil to make mindless offerings to God. Don’t make rash promises, and don’t be hasty in bringing matters before God. After all, God is in heaven, and you are here on earth. So let your words be few. (Ecclesiastes 5:1, 2 NLT)
Don’t be surprised if you see a poor person being oppressed by the powerful and if justice is being miscarried throughout the land. For every official is under orders from higher up, and matters of justice get lost in red tape and bureaucracy. Even the king milks the land for his own profit! (Ecclesiastes 5:8, 9 NLT)
Better to spend your time at funerals than at parties. After all, everyone dies— so the living should take this to heart. Sorrow is better than laughter, for sadness has a refining influence on us. A wise person thinks a lot about death, while a fool thinks only about having a good time. (Ecclesiastes 7:2-4 NLT)
Don’t long for “the good old days.” This is not wise. (Ecclesiastes 7:10 NLT)
Enjoy prosperity while you can, but when hard times strike, realize that both come from God. Remember that nothing is certain in this life. (Ecclesiastes 7:14 NLT)
The same destiny ultimately awaits everyone, whether righteous or wicked, good or bad, ceremonially clean or unclean, religious or irreligious. Good people receive the same treatment as sinners, and people who make promises to God are treated like people who don’t. It seems so tragic that everyone under the sun suffers the same fate. That is why people are not more careful to be good. Instead, they choose their own mad course, for they have no hope. There is nothing ahead but death anyway. There is hope only for the living. As they say, “It’s better to be a live dog than a dead lion!” (Ecclesiastes 9:2-4 NLT)
Live happily with the woman you love through all the meaningless days of life that God has given you under the sun. The wife God gives you is your reward for all your earthly toil. Whatever you do, do well. For when you go to the grave, there will be no work or planning or knowledge or wisdom. I have observed something else under the sun. The fastest runner doesn’t always win the race, and the strongest warrior doesn’t always win the battle. The wise sometimes go hungry, and the skillful are not necessarily wealthy. And those who are educated don’t always lead successful lives. It is all decided by chance, by being in the right place at the right time. (Ecclesiastes 9:9-11 NLT)
Never make light of the king, even in your thoughts. And don’t make fun of the powerful, even in your own bedroom. For a little bird might deliver your message and tell them what you said. (Ecclesiastes 10:20 NLT)
Farmers who wait for perfect weather never plant. If they watch every cloud, they never harvest. (Ecclesiastes 11:4 NLT)
When people live to be very old, let them rejoice in every day of life. But let them also remember there will be many dark days. Everything still to come is meaningless. Young people, it’s wonderful to be young! Enjoy every minute of it. Do everything you want to do; take it all in. But remember that you must give an account to God for everything you do. So refuse to worry, and keep your body healthy. But remember that youth, with a whole life before you, is meaningless. (Ecclesiastes 11:8-10 NLT)
Don’t let the excitement of youth cause you to forget your Creator. Honor him in your youth before you grow old and say, “Life is not pleasant anymore.” Remember him before the light of the sun, moon, and stars is dim to your old eyes, and rain clouds continually darken your sky. Remember him before your legs—the guards of your house—start to tremble; and before your shoulders—the strong men—stoop. Remember him before your teeth—your few remaining servants—stop grinding; and before your eyes—the women looking through the windows—see dimly. Remember him before the door to life’s opportunities is closed and the sound of work fades. Now you rise at the first chirping of the birds, but then all their sounds will grow faint. Remember him before you become fearful of falling and worry about danger in the streets; before your hair turns white like an almond tree in bloom, and you drag along without energy like a dying grasshopper, and the caperberry no longer inspires sexual desire. Remember him before you near the grave, your everlasting home, when the mourners will weep at your funeral. Yes, remember your Creator now while you are young, before the silver cord of life snaps and the golden bowl is broken. Don’t wait until the water jar is smashed at the spring and the pulley is broken at the well. For then the dust will return to the earth, and the spirit will return to God who gave it. (Ecclesiastes 12:1-7 NLT)
That’s the whole story. Here now is my final conclusion: Fear God and obey his commands, for this is everyone’s duty. God will judge us for everything we do, including every secret thing, whether good or bad. (Ecclesiastes 12:13, 14 NLT)
------
As wise as Solomon was, he never got to know one thing we do, which is God's plans of human salvation. Solomon wrote Ecclesiastes without any knowledge of Jesus and of the eternal salvation and redemption that Jesus has purchased for all that turn back to God and believe.
Our existence is truly meaningless without God... Which is why Jesus asked that we "spread the Good News" of eternal life and salvation after death because good news it truly is!