W. Somerset Maugham said this quote

He thought to himself that there could be no greater torture in the world than at the same time to love and to contemn.