Chapter 6 of Ecclesiastes is a very depressing chapter in the life of Solomon. Solomon was the greatest king the world had ever seen. Solomon had the most riches and wisdom ever given a man and he presided over the great kingdom of Israel. With all the advantages that had been given him by God, he doesn't find in them the true meaning and purpose in life that he seeks. Solomon contends that a man can have great riches but not be able to enjoy them. He understood that riches and honor are no guarantee of happiness. He says that a child that was still born and never saw the light of day was better off than a man with many advantages in life but no peace.
People in the Old Testament days, like Solomon, didn't have as much understanding of the afterlife as those who lived in New Testament times. When Jesus came into the world, He shared a lot of insight on what the afterlife of man would be like. Solomon seemed to be searching for more purpose and meaning in life than what he had previously experienced. God says we will find Him when we search for Him with all our heart. The book of Ecclesiastes was probably written toward the end of Solomon's life, and is a picture of the journey he had in finding peace with God. We too are on our journey through life and I hope each of you have found peace with God through a relationship with Jesus Christ. Only through faith in Christ