No hay mal que por bien no venga.
“There is no bad from which some good does not come.”
Even difficult or negative events can bring some hidden benefit or silver lining.
— Traditional Chile Wisdom, Chile
Source: Traditional Chilean proverb, public-domain oral tradition (pan-Hispanic refrán)