Ecclesiastes 2:21

New Living Translation Bible (NLT)
Some people work wisely with knowledge and skill, then must leave the fruit of their efforts to someone who hasn’t worked for it. This, too, is meaningless, a great tragedy.

Read Ecclesiastes 2:21 in other translations