“The only freedom which deserves the name, is that of pursuing our own good in our own way”
John Stuart Mill wrote this in On Liberty, first published in 1859. It appears in Chapter I.
Where it appears
No society in which these liberties are not, on the whole, respected, is free, whatever may be its form of government; and none is completely free in which they do not exist absolute and unqualified. The only freedom which deserves the name, is that of pursuing our own good in our own way , so long as we do not attempt to deprive others of theirs, or impede their efforts to obtain it. Each is the proper guardian of his own health, whether bodily, or mental and spiritual. Mankind are greater gainers by suffering each other to live as seems good to themselves, than by compelling each to live as seems good to the rest.
From the public-domain edition, read it free.