I heard this one today.  Must say its quite deep.

“The hurt now is worth the happiness then.”

I won’t elaborate on this and let the reader draw their own meaning.   Only caveat is that this for me personally, this is a future oriented statement that helps me with future risk assessment.

You can turn this and say “Is the pain now worth the success before” or  “Would I do this again, knowing what I know now”.