Ecclesiastes 2:13

2:13 I realized that wisdom is preferable to folly,

just as light is preferable to darkness:

Ecclesiastes 2:21

2: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!