Many people with depression believe that nothing good will ever happen for them. The norm is failure and disappointment, the exception is success, and when something good does happen, it doesn’t count. This is just the sort of inner belief and self-talk that cognitive therapy addresses, and one of its leading advocates is Martin Seligman.
https://www.storiedmind.com/depression-treatments/treatments-cognitive-therapy/