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!

Looking for a lead: @IrishRail staff are trying to sniff out the owner of an intrepid dog who boarded a commuter train from Co Kildare to Dublin today pic.twitter.com/1qZgMAyAEq

— RTÉ News (@rtenews) April 3, 2019

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.

Our #LostDog is sleeping soundly in #Heuston right now but we're still hoping to reunite him with his owner. Please RT #lostpets #lostandfoundpets https://t.co/W3vKD4HD7B pic.twitter.com/VWbg4VPfHD

— Iarnród Éireann (@IrishRail) April 3, 2019

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

Hamish update!

 His owners have been found!
 His real name is Tyson!
 He’s getting chipped by @MyLovelyHorseR so if he goes a wandering again, he can be found
 Family reunion TBC
 The movie rights are exorbitant!

 Thank you to everyone for spreading the word! pic.twitter.com/Bt4pJAY7hr

— Iarnród Éireann (@IrishRail) April 4, 2019

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

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