Jon Kabat-Zinn said this quote

The challenge of mindfulness is to work with the very circumstances that you find yourself in - no matter how unpleasant, how discouraging, how limited, how unending and stuck they may appear to be - and to make sure that you have done everything in your power to use their energies to transform yourself before you decide to cut your losses and move on.