Ecclesiastes 1:17 NIV

17 Then I applied myself to the understanding of wisdom,1 and also of madness and folly,2 but I learned that this, too, is a chasing after the wind.

References for Ecclesiastes 1:17