Webster's Revised Unabridged Dictionary · 1913

Forfend

Forfend , transitive verb

[Prefix for- + fend. See Forewend.]

To prohibit; to forbid; to avert. [Archaic]
Which peril heaven forefend! — Shakespeare

This is etymologically the preferable spelling.