Ecclesiastes 7:2-4

2 It is better to go to the house of mourning than to go to the house of feasting: for that is the end of all men, and the living should take this to heart.  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.