Versions:
Pain is knowledge coming in the hard way.
Pain is knowledge coming in the hard way, because you missed the easy way.
Pain is knowledge coming in the window because you locked the door again.
Pain is knowledge in a hard-to-digest form.