Ecclesiastes 7:4 in the King James Version
The heart of the wise is in the house of mourning; but the heart of fools is in the house of mirth.
Context
3 Sorrow is better than laughter; for by the sadness of the face the heart is made good.
4 The heart of the wise is in the house of mourning; but the heart of fools is in the house of mirth.
5 It is better to hear the rebuke of the wise than for a man to hear the song of fools.