Definitions of as luck would have it:

  • adverb:   by good fortune