Gary Thomas said this quote

The mature response, however, is not to leave; it's to change -- ourselves.Whenever marital dissatisfaction rears its head in my marriage -- as it does in virtually every marriage -- I simply check my focus. The times that I am happiest and most fulfilled in my marriage are the times when I am intent on drawing meaning and fulfillment from becoming a better husband rather than from demanding a better wife.If you're a Christian, the reality is that, biblically speaking, you can't swap your spouse for someone else. But you can change yourself. And that change can bring the fulfillment that you mistakenly believe is found only by changing partners. In one sense, it's comical: Yes, we need a changed partner, but the partner that needs to change is not our spouse, it's us!I don't know why this works. I don't know how you can be unsatisfied maritally, and then offer yourself to God to bring about change in your life and suddenly find yourself more satisfied with the same spouse. I don't why this works, only that it does work. It takes time, and by time I mean maybe years. But if your heart is driven by the desire to draw near to Jesus, you find joy by becoming like Jesus. You'll never find joy by doing something that offends Jesus -- such as instigating a divorce or an affair.