ט֥וֹב כַּ֖עַס מִשְּׂחֹ֑ק כִּֽי־בְרֹ֥עַ פָּנִ֖ים יִ֥יטַב לֵֽב׃
Vexation is better than laughter; For by the sadness of the countenance the heart may be gladdened.
Read kabbalistic (mystical) interpretation of Ecclesiastes 7:3: and classical mystical sources.