Ecclesiastes 2:21

ISV(i) 21 For sometimes people who strive to obtain wisdom, knowledge, and equity leave everything as an inheritance to a person who never worked for it. This, too, is pointless and greatly troublesome.