Ecclesiastes 1:17

Amplified Bible (AMP)
And I set my mind to know [practical] wisdom and to discern [the character of] madness and folly [in which men seem to find satisfaction]; I realized that this too is a futile grasping and chasing after the wind.

Read Ecclesiastes 1:17 in other translations