Albert Pike said this quote

That which causes us trials shall yield us triumph: and that which make our hearts ache shall fill us with gladness. The only true happiness is to learn, to advance, and to improve: which could not happen unless we had commenced with error, ignorance, and imperfection. We must pass through the darkness, to reach the light.