Friedrich Nietzsche said this quote

That the other suffers has to be learned, and it can never be learned fully.