Friedrich Nietzsche said this quote

The man of knowledge must be able not only to love his enemies but also to hate his friends.