Jacob Bell at Classical Wisdom: Donald Robertson, author of How to Think Like a Roman Emperor: The Stoic Philosophy of Marcus Aurelius, discusses strategies for coping with pain derived from the ancient wisdom of Stoicism.
"Stoic philosophy had a sophisticated repertoire of psychological therapy techniques at its disposal. Indeed, it was the inspiration for modern cognitive-behavioral therapy (CBT), which first appeared in the 1950s. CBT is currently the dominant evidence-based form of psychotherapy, and provides some surprisingly robust techniques for coping psychologically with chronic pain and illness."
See Marcus Aurelius, Meditations, in Great Books of the Western World (first edition, 52 Vol., 1952) volume 12, and (second edition, 60 Vol., 1990) volume 11.