Fyodor Dostoyevsky said this quote

I am leaving now; but know, Katerina Ivanovna, that you indeed love only him. And the more he insults you, the more you love him. That is your strain. You precisely love him as he is, you love him insulting you. If he reformed, you would drop him at once and stop loving him altogether. But you need him in order to continually contemplate your high deed of faithfulness, and to reproach him for his unfaithfulness. And it all comes from your pride. Oh, there is much humility and humiliation in it, but all of it comes from pride.