Stella Adler said this quote

You will fail. That's great. Here's a secret for you - that's the only way you can learn. Learning has to cost you something. If you fail but learn something from your failure, you will grow.