Ecclesiastes 4:16

The number of people, out of all who existed before these, is boundless. And those who will exist afterwards shall not rejoice in them. But this, too, is emptiness and an affliction of the spirit

Other versions

King James Version

There is no end of all the people, even of all that have been before them: they also that come after shall not rejoice in him. Surely this also is vanity and vexation of spirit.

English Standard Version

There was no end of all the people, all of whom he led. Yet those who come later will not rejoice in him. Surely this also is vanity and a striving after wind.

New International Version

There was no end to all the people who were before them. But those who came later were not pleased with the successor. This too is meaningless, a chasing after the wind.