It's a common phrase used in many Western films, and often attributed to John Wayne due to his association with the genre. However, it's never definitively confirmed to be uttered by Wayne in any particular movie.
The phrase itself represents a classic Western ideal of courage, duty, and self-reliance.