beaten to it, gotten there first
Du bist mir zuvorgekommen, ich wollte dich auch gerade anrufen.
You got there before me, I was just about to call you too.
Ich hätte das schon gemacht, aber du bist mir zuvorgekommen.
I would have done that already, but you got there first.
Eigentlich wollte ich dich einladen, aber dein Freund ist mir zuvorgekommen.
I actually wanted to invite you, but your friend got there first.
Wie so oft ist mir jemand zuvorgekommen.
As so often happens, someone got there before me.