Beat someone to the punch (Short video)

say "I beat you to the punch" when you do or achieve something before someone else is able to
[ --- I was planning to take care of the problem for him, but he beat me to the punch and did it himself. --- ]