Ecclesiastes 7:4

Anger is better than laughter. For through the sadness of the countenance, the soul of one who offends may be corrected

Other versions

King James Version

The heart of the wise is in the house of mourning; but the heart of fools is

English Standard Version

The heart of the wise is in the house of mourning, but the heart of fools is in the house of mirth.

New International Version

The heart of the wise is in the house of mourning, but the heart of fools is in the house of pleasure.