There is a basic law that like attracts like. Negative thinking definitely attracts negative results. Conversely, if a person habitually thinks optimistically and hopefully, his positive thinking sets in motion creative forces - and success instead of eluding him flows toward him.
Divorce is never a pleasant experience. You look upon it as a failure. But I learned to be a different person once we broke up. Sometimes you learn more from failure than you do from success.