Ecclesiastes 7:3

Amplified Bible (AMP)

Sorrow is better than laughter,
For when a face is sad (deep in thought) the heart may be happy [because it is growing in wisdom].

Read Ecclesiastes 7:3 in other translations