What is the meaning of [Fools live poor to die rich]

“I have to live for others and not for myself; that’s middle-class morality.”,George Bernard Shaw, Pygmalion (1912)