I know this expression in my own language, and I think I've heard it a couple of times in English, but it completely slipped my mind. I can give an example to make it easier for you to understand what expression I'm looking
I wanted to ask her out. But then she spoke. "You wanna grab dinner, or something". (expression)
Basically something saying; she got the before me. Or something like that. Sorry if this is too vague, but please try your best. If there's any Norwegians reading this question, here's the expression or phrase in Norwegian: "Å komme noen i forveien".
Alright, hope I gave you all enough to work with. I think it's a pretty common expression. Also, sorry for the really bad written example. I just need to make something quick, it simply there to paint a picture.