Ecclesiastes 2:15

Then I said in my heart: As it happens to the fool, so it will happen to me. Why have I been so wise? Then I said in my heart: This also is vanity.

Ecclesiastes 6:8

What does the wise have more than the fool? What does the poor have knowing how to walk before man?

1 Kings 3:12

I will do what you have asked. I will give you more wisdom and understanding than anyone has ever had. There has never been nor will ever be anyone like you.

Ecclesiastes 1:2

Vanity of vanities, said the Preacher, vanity of vanities; all is vanity.

Ecclesiastes 1:14

I have seen all the works that are done under the sun. Behold, all is vanity and a striving after wind.

Ecclesiastes 1:16

I said to my heart, I have become great and have acquired more wisdom than all who were before me in Jerusalem. Yes, my heart has seen an abundance of wisdom and knowledge.

Ecclesiastes 1:18-1

In much wisdom there is much grief for he who increases knowledge increases pain.

Ecclesiastes 2:16

Neither the wise man nor the foolish man will be remembered for long. All that now is will be forgotten in the days to come. Death comes to both the wise and the foolish.

Treasury of Scripture Knowledge

Summary

Then said I in my heart, As it happeneth to the fool, so it happeneth even to me; and why was I then more wise? Then I said in my heart, that this also is vanity.

General references

Bible References

And why

Ecclesiastes 1:16
I said to my heart, I have become great and have acquired more wisdom than all who were before me in Jerusalem. Yes, my heart has seen an abundance of wisdom and knowledge.
1 Kings 3:12
I will do what you have asked. I will give you more wisdom and understanding than anyone has ever had. There has never been nor will ever be anyone like you.

Then i

Ecclesiastes 2:1
I said in my heart, Come now, I will test you with rejoicing. Consider goodness. This also is vanity.
Ecclesiastes 1:2
Vanity of vanities, said the Preacher, vanity of vanities; all is vanity.

General references

Ecclesiastes 1:2
Vanity of vanities, said the Preacher, vanity of vanities; all is vanity.