Washington Irving said this quote

The natural effect of sorrow over the dead is to refine and elevate the mind.