There is an evil that I have seen under the sun, and it lies heavy upon humankind: those to whom God gives wealth, possessions, and honor, so that they lack nothing of all that they desire, yet God does not enable them to enjoy these things, but a stranger enjoys them. This is vanity; it is a grievous ill. A man may beget a hundred children, and live many years; but however many are the days of his years, if he does not enjoy life's good things, or has no burial, I say that a stillborn child is better off than he. (NRSV 6:1-3)
There is an evil which I have seen under the sun, and it is common among men: A man to whom God hath given riches, wealth, and honour, so that he wanteth nothing for his soul of all that he desireth, yet God giveth him not power to eat thereof, but a stranger eateth it: this is vanity, and it is an evil disease. If a man beget an hundred children, and live many years, so that the days of his years be many, and his soul be not filled with good, and also that he have no burial; I say, that an untimely birth is better than he. (KJV 6:1-3)
This runs along the same lines as the last quote: the rich or fortunate aren't always so rich or so fortunate. It can all turn on a dime. It's better not to have been born than to have only had good things or a lot of things, without ever enjoying them and living in the present.