Maddie went overboard near North Haven and she was rescued by a lobsterman, according to the Maine Marine Patrol, which shared Maddie’s story in a Facebook post on Friday.

“This is one lucky dog. Maddie was recently enjoying a day on-board her owner’s recreational boat near North Haven when she went in the water. The owner did not immediately notice and she spent some time swimming for her life until North Haven lobsterman Corey Beverage saw her and plucked her from the water, most certainly saving her life,” the marine patrol said in the post.

While Beverage cared for Maddie, other local fishermen contacted the marine patrol and began looking for the owner, who was soon found searching the area.

Beverage told Officer Matthew Wyman of the marine patrol that his grandfather had lost a dog to a similar fate, so he knew how the owner must have felt.

The marine patrol thanked Beverage and the other local fishermen for their efforts to save Maddie and reunite her with her owner.

“It’s also a reminder to keep a very close eye on your pets if you bring them on board this summer,” the marine patrol said.

An attempt to reach Beverage for comment on Saturday was not immediately successful.

North Haven is 12 miles off the coast from Rockland. The water temperature in July is generally about 58 degrees, according to the National Oceanic and Atmospheric Administration.