Hamish the Train Dog. Iarnród Éireann/Twitter

A lost dog became an Irish national treasure on Wednesday after he was found on a train from Sallins to Heuston without his owner. 

Hamish the Train Dog was reunited with his owner Thursday after a whirlwind 24 hours in which he became a social media sensation.

The terrier, real name Tyson, was found on Wednesday morning in Heuston Station, Dublin, on a commuter train that had traveled from Sallins in Co Kildare. 

Read more: National Dog Day: meet Ireland's most famous dog breeds!

Once it was realized that the dog was all alone, the staff at Irish Rail jumped into action to find his rightful owner. Naming him Hamish for the day, the pup became the talk of the town after featuring on the evening news and he was thankfully reunited with his family by Thursday.

The dog was microchipped before he made the trip back to Kildare, just in case he decided to go taking any more trips to the Irish capital on his lonesome. His owner identified themselves by providing photos of the dog to the My Lovely Horse animal rescue center who had taken him into their care. 

Read more: How to bring your pets with you when you move to Ireland

Looking for a great Irish name for your pet? Why not try out one of these: Top Irish names for your dog