Paulo Coelho said this quote

but something always went wrong, and the relationship would end precisely at the moment when she was sure that this was the person with whom she wanted to spend the rest of her life. After a long time, she came to the conclusion that men brought only pain, frustration, suffering and a sense of time dragging.