It is easy in the world to live after the world’s opinion; it is easy in solitude to live after our own; but the great man is he who in the midst of the crowd keeps with perfect sweetness the independence of solitude.
Attribution checked
Quothly found supporting evidence for this attribution.
The phrase appears in Emerson’s essay 'Solitude' / 'Self-Reliance' as documented on Wikiquote, which cites Emerson’s essays as the source.
Wikiquote — Solitude (Ralph Waldo Emerson)