Eclesiastes 2

26 For God gives wisdom, and knowledge, and joy to a man who is good in His sight. But to the sinner He gives labor, to collect and gather, that he may give to him who is good before God. This also is vanity and striving of spirit.