It made a great Disney movie back in the 50’s I am pretty sure Fess Parker ( Davy Crockett and Daniel Boone) was in the movie.
That would be "The Great Locomotive Chase" (1956), with Parker playing Anderson.
The event also inspired Buster Keaton's great film "The General" (1925).