In solitude the mind gains strength and learns to lean upon itself.
Attribution checked
Quothly found supporting evidence for this attribution.
The line appears in Laurence Sterne's letters (cited as Letter LXXX to the Earl of Shelburne, May 1, 1767, in Letters, 1775).
Wikiquote — Solitude