Angels with Dirty Faces, when Jimmy Cagney, refuses to 'turn yellow' before he goes to the chair, so that the boys who idolise him won't follow in his footsteps. Then, as his friend, the priest, watches him walk to his execution, the shadow on the wall shows Cagney start to struggle, and he starts to cry out and beg for mercy. When the priest goes back to the gang's hideout, the boys all ask him to say that Cagney didn't beg, but he just asks them to pray 'for the little boy who could never run fast enough.'
Also, it's not a film, but in the comic, Spider-man, when Peter Parker's Aunt May is dying, Peter sits with her in the hospital, and tells him that she has always known that he was Spider-man, and how proud she is of him, and, more importantly for him, how proud his Uncle Ben would have been.