Ecclesiastes 6:3

If a man were to produce one hundred children, and to live for many years, and to attain to an age of many days, and if his soul were to make no use of the goods of his resources, and if he were lacking even a burial: concerning such a man, I declare that a miscarried child is better than he

Other versions

King James Version

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

English Standard Version

If a man fathers a hundred children and lives many years, so that the days of his years are many, but his soul is not satisfied with life's good things, and he also has no burial, I say that a stillborn child is better off than he.

New International Version

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.