As luck would have it

By fortunate chance. The expression was originally used in the from of ‘as good luck would have it’.

As luck would have it, I managed to find the book I was looking for.

The idiom originates from Shakespeare’s The Merry Wives of Windsor, 1600.