Friedrich Nietzsche said this quote

Sometimes, you have to love beyond yourself! And that's how you learn to love! That's why you had to drink the bitter glass of your love.