The Good, The Bad And The Ugly, Clint Eastwood, The Man With No Name, 1966.
If This is the film your thinking of, the quote goes:
"You see, in this world there's two kinds of people, my friend. Those with loaded gun's and those who dig. You dig."
If your thinking of another film, my bad, i'm sorry and ignore my quote.
"Don't pi** in my pocket and tell me it's raining."