Sheriff's deputies in Oklahoma recently rescued an injured dog that was stuck on train tracks for nearly half a week.

The Wagoner County Sheriff's Office shared video of the incident on Wednesday. The department explained that its deputies learned of the injured dog on Mar. 27, after receiving a phone call about the animal.

"Deputy Hutton observed that a large dog had been hit by a train and was stuck in between the railroad tracks," the office said in a Facebook post.

"Deputy Hutton and Captain Harding determined that they could not get a patrol unit down to the location of the injured animal, so they requested the Sheriff’s Office Side by Side to the location to transport the animal safely to the roadway."

FIVE-LEGGED LAMB GETS SECOND CHANCE AFTER MISSISSIPPI WOMAN OPENS HOME AND HEART FOR REHABILITATION

Split image of dog and train tracks

The wounded dog was rescued by deputies from the Wagoner County Sheriff's Office in Oklahoma. (Wagoner County Sheriff's Office)

Bodycam footage shows one deputy carefully picking up the dog while another assisted and said encouraging words.

"You're okay, you're okay," an officer was heard cooing to the injured animal.

In less than a minute, the authorities successfully transported the dog to their vehicle. The pet was soon reunited with its family and taken to a local veterinarian's office for treatment.

NEW YORK ANIMAL RESCUE SAYS SURRENDERED BLOODHOUND DOG IS LOOKING FOR A NEW HOME: MEET DUKE

Dog being carried by officer

Bodycam footage shows officers carefully transporting the injured dog. (Wagoner County Sheriff's Office)

"It was discovered that the animal had been injured by a train three days prior to being located and could not free itself," the sheriff's office said. "The Sheriff’s Office was pleased that the dog was located and hopes for a full recovery for the injured canine."

The officers were commended for their heroism in a Facebook post about the incident.

"These guys do it all," one local wrote. "Best [s]heriff, best deputies, best K9s, and best technology. Just the best."

"Great job officers, so glad this guy found his way back to his people," another said.

One Facebook user named Mike Howell identified himself as the Good Samaritan who reported that the dog was on the tracks.

CLICK HERE TO SIGN UP FOR OUR LIFESTYLE NEWSLETTER

Dog being carried in blanket

Local residents praised the police officers for saving the dog's life. (Wagoner County Sheriff's Office)

"I’m so happy this turned out well as I am the locomotive engineer that reported this poor pup being injured and unable to move for 4 days stuck in between the tracks," the man wrote. "Thank you wagoner county sheriff’s!!!!! This post made my day."

Howell told Fox News Digital that he "couldn’t just do nothing" after seeing the helpless animal.

"I was so very happy to find out that he was okay and had been reunited with his family," the engineer said. "This is a one-in-a-million situation. 99% of the time it’s not a happy ending." 

"[I] ask that people keep their pets contained in the safety of their homes and not let them run wild, he added. "I can’t tell you how many heartbreaking stories I’ve had to see unfold when it comes to animals on and near the railroad."

Dog covered in blanket

The injured animal was later reunited with its family. (Wagoner County Sheriff's Office)

CLICK HERE TO GET THE FOX NEWS APP

Fox News Digital reached out to local animal clinics to get an update on the dog's condition, but no details were available. The Wagoner County Sheriff's Office did not immediately respond to Fox News Digital's request for comment.

For more Lifestyle articles, visit www.foxnews.com/lifestyle.