In every film of the Star Wars series someone, usually one of the main characters, says the line "I've got a bad feeling about this...". It's sort of one of the catch phrases associated with the series, along with "May the Force be with you". I believe it even shows up in quite a few of the Expanded Universe media, including almost every episode of Star Wars: the Clone Wars. Is this a reference, or homage to another work? Has George Lucas, or any other offical source ever commented on where the line comes from?
If it's older than Star Wars, it doesn't come from print. While have a bad feeling about something is a natural construction in English, it isn't very popular before Star Wars and then takes off:
While this doesn't rule out Lucas using that phrase from some earlier work (perhaps not a written work, or one that escaped Google's book archive), that hypothetical earlier work can't have been so well-known that audiences would have been expected to see it as an allusion.
Beware that the figures are smoothed; while usage does increase over the years, it only really starts taking off around the late 1980s, with an InfoWorld article and perhaps a fantasy novel being among the early occurrences that feel like they're alluding to a catch phrase.
Bad feelings are of course a trope or three, but the catch phrase does seem to start with Star Wars, for which it has become rather emblematic. It has been used in all six movies, in many other works in the Star Wars franchise and elsewhere.
Originally both Luke and Han Solo said a variation on this during Episode IV: A New Hope. Specifically Han's "I got a bad feeling about this." as the trash compactor activated became a catchphrase for the film. Since then it has been used in each of the films as a nod to the audience that something is about to go horribly wrong.
Since then it has been a referential phrase for Star Wars every movie and almost all of the associated media will slip it in somewhere (games, comics, book series). Though Lucas has used it in non SW films, as has Steven Spielberg, and Harrison Ford has said it in other unrelated films. Most SW parodies will slip it in, sometimes redirecting to joke of a scatological nature. But at this point it has disappeared into the vernacular cut free from its SW origins.
In the first released movie (retroactively sub-titled "A New Hope"), it wasn't a reference to anything, just appropo of the moment. IIRC, it was Han Solo who said it first just after they exited hyperspace where Alderaan used to be. I interpreted that as a display of Han's intuition/experience as a mercenary space pilot - almost in juxtaposition of "the force".
In all of the other movies, it was an in-joke/reference to the first movie.
The phrase appears in a lot of Star Wars related material. Although not an official response by Lucas, it's speculated in the book Star Wars and Philosophy: More Powerful Than You Can Possibly Imagine by Kevin S. Decker, Jason T. Eberl, and William Irwin that the phrase is an expression of "existential anxiety... an intuitive response to an undefined problem."
In reality though, it is likely that it was taken up as an in-joke that was repeated by various writer's of Star Wars related material.
Everyone says it
A lot of people in a lot of different movies and literature say something along the lines of "I'm not sure about this" or "Are you sure about this".
If you scroll down the wikia shows the appearances of it outside "Star Wars".
Maybe it was stolen from somewhere
Possibly as a plot device.
To make more of a point Lucas has had it in 2 of his movies.
Possibly just nothing at first, but eventually became a staple of the genre.
It has been said in many of the Star Wars creations(movies, etc) this could say that at first it was just a phrase, but slowly became something that was expected.
From here, if you consider it canon.