Hence despair, like hope, presupposes desire; because we neither hope for nor despair of that which we do not desire to have. For this reason, too, each of them regards the good, which is the object of desire.
 Thomas Aquinas, Summa Theologica (1274). copy citation

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

Context

“2: Despair does not regard evil as such; sometimes however it regards evil accidentally, as making the difficult good impossible to obtain. But it can arise from the mere excess of good.
Reply Obj. 3: Despair implies not only privation of hope, but also a recoil from the thing desired, by reason of its being esteemed impossible to get. Hence despair, like hope, presupposes desire; because we neither hope for nor despair of that which we do not desire to have. For this reason, too, each of them regards the good, which is the object of desire. ________________________
FIFTH ARTICLE [I-II, Q. 40, Art. 5]
Whether Experience Is a Cause of Hope?
Objection 1: It would seem that experience is not a cause of hope. Because experience belongs to the cognitive power; wherefore the Philosopher says (Ethic. ii, 1) that "intellectual virtue needs experience and time." But hope is not in the cognitive power, but in the appetite, as stated above (A.” source