Castle on the Hudson is a 1940 American drama film directed by Anatole Litvak and starring John Garfield, Ann Sheridan, and Pat OBrien. A thief gets sent to Sing Sing Prison, where he is befriended by the reformminded warden. The film was based on the book Twenty Thousand Years in Sing Sing, written by Lewis E. Lawes, who was in real life the warden of the notorious prison and did improve conditions for the inmates.
Source: Wikipedia