The man who, solely from regard to the opinion of others, and without any wish or necessity of his own, toils… — Johann Wolfgang von Goethe

The man who, solely from regard to the opinion of others, and without any wish or necessity of his own, toils after gold, honour, or any other phantom, is no better than a fool.

In the original (German)

Ein Mensch, der um anderer willen, ohne dass es seine eigene Leidenschaft, sein eigenes Bedürfnis ist, sich um Geld oder Ehre oder sonst etwas abarbeitet, ist immer ein Tor.

Source: Wikiquote · CC BY-SA 4.0