Ecclesiastes 2:26 Young's Literal Translation Of The Holy Bible (YLT98)
For to a man who [is] good before Him, He hath given wisdom, and knowledge, and joy; and to a sinner He hath given travail, to gather and to heap up, to give to the good before God. Even this [is] vanity and vexation of spirit.