The Ancient Hindu, Buddhist and Greek philosophical texts are the forerunners. The concept of "Renunciation"(Sanskrit: Sannyasa) under the Vedanta school in Hinduism is worth studying. One excellent and succinct text is the "Ashtavakra Gita" (https://en.wikipedia.org/wiki/Ashtavakra_Gita). There are plenty more Hindu and Buddhist texts on the subject.
The Greek schools, in particular Stoicism; were popularized by the Romans. Here you have the usual suspects i.e. the works of Seneca, Cicero, Epictetus and Marcus Aurelius.
Finally, the Essays of Michel De Montaigne contain one "On Solitude" (https://www.gutenberg.org/files/3600/3600-h/3600-h.htm#link2...) which has been published as a book under "Penguin Great Ideas" series; See https://www.amazon.com/Solitude-Penguin-Great-Ideas/dp/01413...
PS: I believe some of the Christian theologians/philosophers (St. Augustine?) have also written something on the subject though i don't know much about those works.