Read Ecclesiastes 6:3 Using Other Translations
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.
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.
A man might have a hundred children and live to be very old. But if he finds no satisfaction in life and doesn’t even get a decent burial, it would have been better for him to be born dead.