Napoleon Hill said this quote

Opportunity...it often comes disguised in the form of misfortune or temporary defeat.