My murshid, Abu Hashim Madani, once said that there is only one virtue and only one sin for a soul on this path: virtue when he is conscious of God and sin when he is not. No explanation can describe the truth of this except the experience of the contemplative, to whom, when he is conscious of God, it is as if a window is open, which is facing heaven, and when he is conscious of the self, the experience is the opposite. For all the tragedy of life is caused by consciousness of the self. All pain and depression are caused by this, and anything that can take away the thought of the self helps to a certain extent to relieve man from pain; but God-consciousness gives perfect relief.
from
https://wahiduddin.net/mv2/IX/IX_10.htm
Pleasure blocks, but pain clears the way of inspiration.Bowl of Saki, September 4, by Hazrat Inayat Khan
Tagore says: 'When the string of the violin was being tuned it felt the pain of being stretched, but once it was tuned then it knew why it was stretched'. So it is with the human soul. While the soul goes through pain, torture and trouble it thinks that it would have been much better if it had gone through life without it. But once it reaches the culmination of it then, when it looks back, it begins to realize why all this was meant: it was only meant to tune the soul to a certain pitch.
from
https://wahiduddin.net/mv2/XIV/XIV_16.htm