Goodness affords the only comfort which can be enjoyed without a partner, and goodness may be practised in retirement.
 Samuel Johnson, The History of Rasselas, Prince of Abissinia (1759). copy citation

Context

“We may perhaps allow that what satisfaction this world can afford must arise from the conjunction of wealth, knowledge, and goodness. Wealth is nothing but as it is bestowed, and knowledge nothing but as it is communicated. They must therefore be imparted to others, and to whom could I now delight to impart them? Goodness affords the only comfort which can be enjoyed without a partner, and goodness may be practised in retirement.” “How far solitude may admit goodness or advance it, I shall not,” replied Imlac, “dispute at present. Remember the confession of the pious hermit. You will wish to return into the world when the image of your companion has left your thoughts.”” source