“Your pain is the breaking of the shell that encloses your understanding.”
Kahlil Gibran wrote this in The Prophet, first published in 1923. It appears in On Pain.
Where it appears
And since you are a breath in God’s sphere, and a leaf in God’s forest, you too should rest in reason and move in passion. And a woman spoke, saying, Tell us of Pain. And he said: Your pain is the breaking of the shell that encloses your understanding. Even as the stone of the fruit must break, that its heart may stand in the sun, so must you know pain. And could you keep your heart in wonder at the daily miracles of your life, your pain would not seem less wondrous than your joy;
From the public-domain edition, read it free.