Whether pain deprives one of the power to learn?

Objections

Objection 1 : It would seem that pain does not deprive one of the power to learn. For it is written (Is. 26:9): "When Thou shalt do Thy judgments on the earth, the inhabitants of the world shall learn justice": and further on (verse 16): "In the tribulation of murmuring Thy instruction was with them." But the judgments of God and tribulation cause sorrow in men's hearts. Therefore pain or sorrow, far from destroying, increases the power of learning.
Objection 2 : Further, it is written (Is. 28:9): "Whom shall He teach knowledge? And whom shall He make to understand the hearing? Them that are weaned from the milk, that are drawn away from the breasts," i.e. from pleasures. But pain and sorrow are most destructive of pleasure; since sorrow hinders all pleasure, as stated in Ethic. vii, 14: and (Ecclus. 11:29) it is stated that "the affliction of an hour maketh one forget great delights." Therefore pain, instead of taking away, increases the faculty of learning.
Objection 3 : Further, inward sorrow surpasses outward pain, as stated above (Question [35], Article [7]). But man can learn while sorrowful. Much more, therefore, can he learn while in bodily pain.