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.
Avicenna (1999). “The Canon of Medicine (al-Qānūn Fī'l-ṭibb)”, Abjad Book Designers & Builders