Oswald Chambers said this quote

Discouragement is disillusioned self-love, and self-love may be love for my devotion to Jesus— not love for Jesus Himself.