A Course in Miracles rightly points out that, whenever you are unhappy, there is the unconscious belief that the unhappiness "buys" you what you want. If "you"—the mind—did not believe that unhappiness works, why would you create it? The fact is, of course, that negativity does not work. Instead of attracting a desirable condition, it stops it from arising. Instead of dissolving an undesirable one, it keeps it in place. Its only "useful" function is that it strengthens the ego, and that is why the ego loves it.

Eckhart Tolle

from The Power of Now: A Guide to Spiritual Enlightenment