I answer that, Just as it is a condition of happiness that the will should find rest therein, so is it a condition of punishment, that what is inflicted in punishment, should go against the will.
 Thomas Aquinas, Summa Theologica (1274). copy citation

add
Author Thomas Aquinas
Source Summa Theologica
Topic punishment happiness
Date 1274
Language English
Reference
Note Translated by Fathers of the English Dominican Province
Weblink http://www.gutenberg.org/cache/epub/18755/pg18755-images.html

Context

“Now the damned have no joy, but sorrow and grief, according to Isa. 65:14, "My servants shall praise for joyfulness of heart, and you shall cry for sorrow of heart, and shall howl for grief of spirit." Therefore no hope is in the damned.
I answer that, Just as it is a condition of happiness that the will should find rest therein, so is it a condition of punishment, that what is inflicted in punishment, should go against the will. Now that which is not known can neither be restful nor repugnant to the will: wherefore Augustine says (Gen. ad lit. xi, 17) that the angels could not be perfectly happy in their first state before their confirmation, or unhappy before their fall, since they had no foreknowledge of what would happen to them.” source