They sing it in Across the universe when the one dude is drafted into the army. That's the only time I've ever heard it in a movie. If that's not what you're thinking about, It's probably just that the song, especially the ending is so epic that it'd fit into any number of films.
Funny thing, I clicked on this post while I was listening to Lennon's Instant Karma.
