From Wiktionary, the free dictionary
An ellipsis for there but for the grace of God go I.
but for the grace of God
- Were it not for God's help.
- Unlike the full form, this form is sometimes used to refer to someone else's good fortune in avoiding a bad outcome.