Ecclesiastes 6:2-4 Authorized (King James) Version (AKJV)
2 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.
3 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. 4 For he cometh in with vanity, and departeth in darkness, and his name shall be covered with darkness.
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.