Shep was the name given to a herding dog that appeared at the Great Northern Railway station one day in 1936 in Fort Benton, Montana, and watched as his deceased master's casket was loaded onto the train and left. The dog remained at the station, waiting for his master to return for the next five and a half years, until he was killed by an incoming train in 1942. Source