Green’s Dictionary of Slang

agad! excl.

[gad n.1 ]

[mid-18C] a euph. excl. meaning God!