Arthur Gordon said this quote

You’re thinking of failure as the enemy of success. But it isn’t at all. Failure is a teacher – a harsh one, perhaps, but the best. You say you have a desk full of rejected manuscripts? That’s great! Every one of those manuscripts was rejected for a reason. Have you pulled them to pieces looking for that reason? You’ve got to put failure to work for you. That’s where you’ll find success. On the far side of failure.