Learn from every mistake because every experience, encounter, and particularly your mistakes are there to teach you and force you into being more who you are.
Everytime we say that god is the author of some phenomenon, that signifies that we are ignorant of how such a phenomenon was caused by the forces of nature.