HOUSTON (CBSDFW.COM) – A Houston man says he was at the right place at the right time after his neighbor’s dog leash got caught in an elevator door.

The incident was recorded on a security camera at their apartment building on Monday.

READ MORE: North Texas Nonprofit Brings Joy Of Scuba Diving To Veterans With Disabilities

It shows a woman walking into the elevator with her dog in the leash, but the door closes before the dog gets in.

The elevator goes down, pulling the other end of the leash with it.

READ MORE: Southlake Police Seek Blonde 'Posh' Porch Pirate In Pencil Skirt And Heels

But the man, who had just gotten off the elevator, rushed over and worked quickly to remove the leash from the dog.

Man rescues dog with leash caught in elevator (courtesy: Johnny Mathis)

The good Samaritan, Johnny Mathis, said the woman was overjoyed when she realized her dog wasn’t hurt.

MORE NEWS: North Texas City's Struggle To Hire Lifeguards For Summer Leads To Pool Closures

Man rescues dog with leash caught in elevator (courtesy: Johnny Mathis)