beat someone to the punch
beat (one) to the punch
To do or obtain something before someone else does. The phrase is thought to have originated from boxing. Primarily heard in US. I was going to suggest that idea to the boss today, but unfortunately one of my co-workers beat me to the punch.