Ecclesiastes 2:21 New English Translation (NET Bible)
21 For a man may do his work with wisdom, knowledge, and skill;
however, he must hand over the fruit of his labor as an inheritance
to someone else who did not work for it.
This also is futile, and an awful injustice!