Ecclesiastes 6:3

Leeser(i) 3 If a man were to beget a hundred children, and live many years, so that the days of his years were many, and his soul were not satisfied with what is good, and he have not had even a burial: then do I say, that an untimely birth is better than he.