Ecclesiastes 2:26 To the man who pleases him, God gives wisdom, knowledge and happiness, but to the sinner he gives the task of gathering and storing up wealth to hand it over to the one who pleases God. …
Commentary:
Two important points about wisdom. First, God is a source of wisdom. Notice that wisdom, knowledge and happiness are all separate items. Second, sin keeps us from gaining wisdom. Note, however, that sin does not necessarily keep us from gaining wealth. But the wealth is temporal.