Tyson gets his home and name back after his day trip on the train
It was homeward bound for one adventurous pup as it emerged 'Hamish' the dog had been reunited with his owner.
Having been in the care of Irish Rail worker and volunteer with My Lovely Horse rescue centre Ted Maher for the night, it turned out the black and tan dog actually went by the name of Tyson.
The little dog had jumped on the commuter train from Sallins in Co Kildare to Dublin on Wednesday morning on his own.
The story went viral on social media after Irish Rail sent out an appeal to find his owners.
Tyson provided his fellow passengers with an amusing journey as he took the train four stops all the way to Heuston Station before disembarking.
Irish Rail spokesman Barry Kenny told the Irish Independent the dog completely ignored the 'seats are not for feet' sign as he hopped up on one after boarding.
"He entertained a lot of people on the train when he boarded," Mr Kenny said.
Hundreds of people took to social media to try to help and offered to rehome the dog if his owner was not found.
My Lovely Horse Rescue microchipped the dog before returning him to his owners.
Barry said staff and customers are delighted that his owners have been found.
"We'd just like to thank everyone for their help with this - especially Ted Maher who works with us at Inchicore and volunteers with My Lovely Horse," he said.
"It really has been a team effort and we are happy that this shaggy dog story has a good ending to the tale."