Ecclesiastes 2:21

2:21 For there is a man whose labour is with wisdom, with knowledge, and with skilfulness; yet he shall leave it for his portion to a man who has not laboured for it. This also is vanity and a great evil.