An impatient driver received some instant karma as he tried to pass an undercover cop in Pennsylvania.

The moment was caught on dashcam by another driver who was stopped directly behind the officer in a lane merger.

'Traffic is like so f**ked up,' the driver recording the incident is heard saying to a woman on the phone.

An impatient driver received some instant karma as he tried to pass an undercover cop (in white vehicle) in Pennsylvania

The moment was caught on dashcam by another driver who was stopped directly behind the officer in a lane merger. A black vehicle (right) is then seen using a shoulder on the side of the road to pass the officer

Moments later, the impatient car behind the man starts beeping their horn.

The undercover officer still doesn't budge as he or she waits for traffic to pass.

A black vehicle is then seen using a shoulder on the side of the road to pass the officer.

As soon as the vehicle passed by, the officer turned on his patrol lights.

'Oh and it was a f**king cop!' the man recording is heard saying in the background as the officer follows the vehicle to an intersection.

'Instant karma!' the man adds as he relishes in the moment.

As soon as the vehicle passed by, the officer turned on his patrol lights