The first half of Ecclesiastes chapter 7 discusses how funerals are better than parties in teaching us wisdom.