To rejoice in another's prosperity is to give content to your lot; to mitigate another's grief is to alleviate or dispel your own.