Ecclesiastes 6:2-4 Young's Literal Translation (YLT)
2 A man to whom God giveth wealth, and riches, and honour, and there is no lack to his soul of all that he desireth, and God giveth him not power to eat of it, but a stranger eateth it; this [is] vanity, and it [is] an evil disease.
3 If a man doth beget a hundred, and live many years, and is great, because they are the days of his years, and his soul is not satisfied from the goodness, and also he hath not had a grave, I have said, `Better than he [is] the untimely birth.'
4 For in vanity he came in, and in darkness he goeth, and in darkness his name is covered,
Ecclesiastes 6:2-4 New International Version (NIV)
2 God gives some people wealth, possessions and honor, so that they lack nothing their hearts desire, but God does not grant them the ability to enjoy them, and strangers enjoy them instead. This is meaningless, a grievous evil.
3 A man may have a hundred children and live many years; yet no matter how long he lives, if he cannot enjoy his prosperity and does not receive proper burial, I say that a stillborn child is better off than he. 4 It comes without meaning, it departs in darkness, and in darkness its name is shrouded.