“Even as the stone of the fruit must break, that its heart may stand in the sun, so must you know pain.”
Kahlil Gibran wrote this in The Prophet, first published in 1923.
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; And you would accept the seasons of your heart, even as you have always accepted the seasons that pass over your fields.
From the public-domain edition, read it free.