“For what is prayer but the expansion of yourself into the living ether?”
Kahlil Gibran wrote this in The Prophet, first published in 1923. It appears in On Prayer.
Where it appears
Then a priestess said, Speak to us of Prayer. And he answered, saying: You pray in your distress and in your need; would that you might pray also in the fullness of your joy and in your days of abundance. For what is prayer but the expansion of yourself into the living ether? And if it is for your comfort to pour your darkness into space, it is also for your delight to pour forth the dawning of your heart. And if you cannot but weep when your soul summons you to prayer, she should spur you again and yet again, though weeping, until you shall come laughing.
From the public-domain edition, read it free.