"Stinkin' badges" is a paraphrase of a line of dialogue from the 1948 film The Treasure of the Sierra Madre. That line was in turn derived from dialogue in the 1927 novel of the same name, which was the basis for the film.
Mexican bandit leader "Gold Hat" (portrayed by Alfonso Bedoya) tries to convince Fred C. Dobbs (Humphrey Bogart) that he and his men are Federales.
The Treasure of the Sierra Madre (film)
The Treasure of the Sierra Madre is a 1948 American Western film written and directed by John Huston. It is an adaptation of B. Traven's 1927 novel of the same name, set in 1925, and follows two downtrodden men who join forces with a grizzled old prospector, in searching for gold in Mexico.
Theatrical release poster
Walter Huston as Howard
Bruce Bennett, Tim Holt, Humphrey Bogart and Walter Huston