beat one to it

[beat one to it] {v. phr.} To arrive or get ahead of another person.

I was about to call you, John, but you have beat me to it! Thanks for calling me.