Ian Mcewan said this quote

I've heard it argued that long ago pain begat consciousness...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...God said, Let there be pain. And there was poetry. Eventually.