One of my favourite quotes from Rocky Balboa deals with resilience and responding positively to failure:
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!