I believe that pain forces people into one of two attitudes:
It can humble us and enlarge our compassion for others, whose pain we had not previously comprehended.
Or it can lead to bitterness, self-pity, envy, and the seeking for company in misery.
Christ is the example of the first. Lucifer is the example of the second.
See Alma 62:41.