Ecclesiastes 7:3-4

7:3 Sorrow is better than laughter,

because sober reflection is good for the heart.

7:4 The heart of the wise is in the house of mourning,

but the heart of fools is in the house of merrymaking.