Dictionary.com
Thesaurus.com

good grief

Idioms  
  1. An exclamation expressing surprise, alarm, dismay, or some other, usually negative emotion. For example, Good grief! You're not going to start all over again, or Good grief! He's dropped the cake. The term is a euphemism for “good God.” [Early 1900s]