Ecclesiastes 2:22 in the King James Version
For what hath man of all his labour, and of the vexation of his heart, wherein he hath laboured under the sun?
Context
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?
23 For all his days are sorrows, and his travail is grief; yes, even in the night his heart takes no rest. This also is vanity.