As luck would have it
This expression was coined by Shakespeare in The Merry Wives of Windsor Act III, Scene V, “As good luck would have it.”