silver lining

something good that can be found in a bad situation