Humphry Davy:

The most important of my discoveries have been suggested to me by my failures.