Every cloud has a silver lining:
Be optimistic, even difficult times will lead to better days.
#english-idioms