When I was little, my mother often told me:
Don't be complacent about others' misfortunes, and don't be resentful about others' fortunes.
I didn't understand the weight of these words when I was young, but I've come to understand them more as I've grown older.