God forbid is an idiom meaning "I hope it does not happen". Other uses may include:

See also edit