fortuitously

adverb
  1. in a way that happens by chance; by lucky accident or coincidence
  2. Usage: formal; often used to describe unexpected favorable outcomes

Examples