In life, the things that go wrong are often the very things that lead to other things going right.
or simply: