If, however, despair be compared to the other two sins from our point of view, then despair is more dangerous, since hope withdraws us from evils and induces us to seek for good things, so that when hope is given up, men rush headlong into sin, and are drawn away from good works.
 Thomas Aquinas, Summa Theologica (1274). copy citation

add
Author Thomas Aquinas
Source Summa Theologica
Topic evil despair
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

“Hence it is clear that unbelief and hatred of God are against God as He is in Himself, while despair is against Him, according as His good is partaken of by us. Wherefore strictly speaking it is a more grievous sin to disbelieve God's truth, or to hate God, than not to hope to receive glory from Him.
If, however, despair be compared to the other two sins from our point of view, then despair is more dangerous, since hope withdraws us from evils and induces us to seek for good things, so that when hope is given up, men rush headlong into sin, and are drawn away from good works. Wherefore a gloss on Prov. 24:10, "If thou lose hope being weary in the day of distress, thy strength shall be diminished," says: "Nothing is more hateful than despair, for the man that has it loses his constancy both in the every day toils of this life, and, what is worse, in the battle of faith."” source