It's a common saying, often used to justify being prepared or having a backup plan. It's more of a folk wisdom saying than a quote from a specific source.
However, the sentiment is very common in Western films and literature. It reflects the harsh realities of the frontier life and the importance of self-reliance.
While it's not definitively tied to a single Western movie, it might be found in a variety of films, including:
* "The Searchers" (1956): Ethan Edwards, the main character, is a man who always prepares for the worst, embodying the "better to have it and not need it" mentality.
* "The Good, the Bad and the Ugly" (1966): Clint Eastwood's "Blondie" character is known for his meticulous planning and preparation.
* "High Noon" (1952): Will Kane, the sheriff, faces a dangerous situation and his decision-making exemplifies the importance of being prepared.
While it's not directly tied to a specific film, the quote's essence resonates with the themes of survival, resourcefulness, and preparedness that are prevalent in the Western genre.