every dark cloud has a silver lining

every dark cloud has a silver lining

It is possible for something good to come out of a bad situation. (A silver lining on a cloud is an indication that the sun is behind it.) I know you're upset about not getting the lead in the school play, but just keep in mind that every dark cloud has a silver lining—you'll get lots of experience as the understudy! When I'm going through a hard time, I try to remind myself that every dark cloud has a silver lining.
See also: cloud, dark, every, lining, silver
Farlex Dictionary of Idioms.
See also:
  • get (one's) bowels in an uproar
  • get bowels in an uproar
  • get one’s bowels in an uproar
  • play Old Harry with (something)
  • beat (oneself) up
  • beat oneself up
  • beat up
  • (one's) heart out
  • I don't want to upset you, but
  • (it's/there's) no good crying over spilt milk
References in periodicals archive
But just like every dark cloud has a silver lining, India too had something to cheer about on Wednesday as star batsman Virat Kohli was cleared to play the match after suffering a knee injury in the opening ODI in Chennai.
And if you want proof that every dark cloud has a silver lining...