However, the line as spoken in the movie is actually "Play it, Sam. Play 'As Time Goes By.'" The popular misquotation "Play it, Sam" often comes from a later reference in the film "The Sting" (1973) when the character Johnny Hooker (Robert Redford) asks his pianist to play "Play it, Sam," ironically referring to a scene in Casablanca.