When a country is well governed, poverty and a mean condition are things to be ashamed of. When a country is ill governed, riches and honor are things to be ashamed of.
邦有道貧且賤焉恥也,邦無道富且貴焉恥也。
Original text (Chinese)
Variants
To be wealthy and honored in an unjust society is a disgrace.