One of my favourite quotes from Rocky Balboa is one that deals with resilience and responding positively to failure:
Let me tell you something you already know.
The world ain't all sunshine and rainbows.
It's a very mean and nasty place and I don't care how tough you are, it will beat you to your knees and keep you there permanently if you let it.
You, me, or nobody is gonna hit as hard as life.
But it ain't about how hard ya hit.
It's about how hard you can get hit and keep moving forward.
How much you can take and keep moving forward.
That's how winning is done!