You say ‘speak of the devil’ when somebody you’ve been talking about appears unexpectedly.

Did you hear what happened to James yesterday – oh, speak of the devil, here he is.