Pain is a sensation produced by something contrary to the course of nature and this sensation is set up by one of two circumstances: either a very sudden change of the temperament (or the bad effect of a contrary temperament) or a solution of continuity.
'A General Discussion of the Causes of Pain', in The Canon of Medicine, adapted by L. Bakhtiar (1999)