Ecclesiastes 1:17

I applied my heart to know wisdom, and to know madness and folly. I perceived that this also was a chasing after wind.

Ecclesiastes 2:3

I searched in my heart how to cheer my flesh with wine, my heart yet guiding me with wisdom, and how to lay hold of folly, until I might see what it was good for the sons of men that they should do under heaven all the days of their lives.

Ecclesiastes 1:13-14

I applied my heart to seek and to search out by wisdom concerning all that is done under the sky. It is a heavy burden that God has given to the sons of men to be afflicted with.

Ecclesiastes 2:10-12

Whatever my eyes desired, I did not keep from them. I did not withhold my heart from any joy, for my heart rejoiced because of all my labor, and this was my portion from all my labor.

Ecclesiastes 7:23-25

All this have I proved in wisdom. I said, "I will be wise;" but it was far from me.

1 Thessalonians 5:21

but test all things; hold firmly that which is good.

Treasury of Scripture Knowledge

Summary

And I gave my heart to know wisdom, and to know madness and folly: I perceived that this also is vexation of spirit.

I perceived

Bible References

I gave

Ecclesiastes 1:13
I applied my heart to seek and to search out by wisdom concerning all that is done under the sky. It is a heavy burden that God has given to the sons of men to be afflicted with.
Ecclesiastes 2:3
I searched in my heart how to cheer my flesh with wine, my heart yet guiding me with wisdom, and how to lay hold of folly, until I might see what it was good for the sons of men that they should do under heaven all the days of their lives.
Ecclesiastes 7:23
All this have I proved in wisdom. I said, "I will be wise;" but it was far from me.
1 Thessalonians 5:21
but test all things; hold firmly that which is good.

I perceived

Ecclesiastes 2:10
Whatever my eyes desired, I did not keep from them. I did not withhold my heart from any joy, for my heart rejoiced because of all my labor, and this was my portion from all my labor.

General references

Ecclesiastes 1:14
I have seen all the works that are done under the sun; and behold, all is vanity and a chasing after wind.
Ecclesiastes 6:11
For there are many words that create vanity. What does that profit man?