as luck would have it
US /æz lʌk wʊd hæv ɪt/
UK /æz lʌk wʊd hæv ɪt/

1.
by chance, often with the implication of good or bad fortune
:
•
We arrived late, but as luck would have it, the concert hadn't started yet.
•
He lost his wallet, and as luck would have it, it had all his important documents.