A lost dog who boarded a New Jersey transit train last week was reunited with his owner following a solo adventure during Thursday morning's commute.

According to police, the dog went missing after following a stranger onto a New Jersey Transit train during the morning commute last week.

The dog rode the train for five stops before officers found him onboard, and took him to a local shelter.

On Sunday, NJ Transit Police thanked the community for helping reunite the owner with the dog and announced that he had been safely returned to his owner.

WORRIED DOG OWNER FINDS LOST ELDERLY PET AT A MILWAUKEE BAR: 'HE WAS PRETTY POPULAR'

Lost dog reunited with owner

Police confirm the dog who went missing on a NJ Transit train is reunited with his owner. (NJ Transit Police)

"The dog is reunited with the owner. We previously asked you to share our lost dog post. Many of you shared it abroad. You helped to spread the word and return the dog home! This is what community and teamwork is all about! Thank you!" NJ Transit Police posted on X, formerly Twitter. 

The NJ Transit train has had its fair share of four-legged visitors.

FAMILY VACATION GOES AWRY WHEN NEIGHBOR’S CAT SECRETLY JOINS THEIR 300-MILE ROAD TRIP

Hoboken Transit Terminal in Hoboken, New Jersey

A person boards a NJ Transit train at the Hoboken Transit Terminal on September 1, 2023, in Hoboken, New Jersey.  (Gary Hershorn/Getty Images)

Back in December, a steer, named Ricardo, escaped from a local slaughterhouse and was spotted running loose on the NJ Transit train tracks. 

CLICK HERE TO GET THE FOX NEWS APP

After the ordeal went viral, the New Jersey Transit Authority sold plush toys of the bull in his honor, with a portion of the proceeds going towards supporting Ricardo's new life at an animal sanctuary, the transit authority said.