Ecclesiastes 2:21 in the King James Version
For there is a man whose labour is in wisdom, and in knowledge, and in equity; yet to a man that hath not laboured therein shall he leave it for his portion. This also is vanity and a great evil.
Context
20 Therefore I began to cause my heart to despair concerning all the labor in which I had labored under the sun.
21 For there is a man whose labor is with wisdom, with knowledge, and with skillfulness; yet he shall leave it for his portion to a man who has not labored for it. This also is vanity and a great evil.
22 For what does a man have of all his labor and of the striving of his heart, in which he labors under the sun?