Ecclesiastes 2:13

Amplified Bible (AMP)
Then I saw that [even secular] wisdom [that brings sorrow] is better than [the pleasures of] folly and self-indulgence as light excels darkness.

Read Ecclesiastes 2:13 in other translations