Edmund Burke said this quote

Never despair, but if you do, work on in despair.