Henry Ward Beecher said this quote

It is defeat that turns bone to flint it is defeat that turns gristle to muscle it is defeat that makes men invincible. Do not then be afraid of defeat. You are never so near to victory as when defeated in a good cause.