idiom
beat someone to the punch
Meaning
to do something before someone else does
Example
He **beat me to the punch** by applying for the job first.