Ian Mcewan said this quote

Adversity forced awareness on us, and it works, it bites us when we go too near the fire, when we love too hard. Those felt sensations are the beginning of the invention of the self. And if that works, why not feeling disgust for shit, fearing the cliff edge and strangers, remembering insults and favours, liking sex and food? God said, Let there be pain. And there was poetry. Eventually.