"I have seen a grievous evil under the sun: wealth hoarded to the harm of its owner, or wealth lost through some misfortune, so that when he has a son there is nothing left for him. Naked a man comes from his mother's womb, and as he comes, so he departs. He takes nothing from his labor that he can carry in his hand." NIV translation
Wealth is fleeting and Solomon came to realize that we do not create anything and are not taking anything with us when we die. How sad it is to see someone who seemingly has everything that this world has to offer but they do not have what is important and eternal. When they stand before the Judge, they will not have anything in their hands and, without the love of God in their hearts, they will be doomed.