a blessing in disguise - definition and synonyms

phrase
  1. something that seems to cause problems, but that you later realize is a good thing

    Losing my job turned out to be a blessing in disguise.

See also main entry: blessing