Space: the final frontier. These are the voyages of the starship Enterprise. Its five-year mission: to explore strange new worlds, to seek out new life and new civilizations, to boldly go where no man has gone before.
The phrase was first introduced into Star Trek by Samuel Peeples, who is attributed with suggesting using it as an episode name. The episode became "Where No Man Has Gone Before", the second pilot of Star Trek. The phrase itself was subsequently worked into the show's opening narration, which was written after the episode. Indeed, the introductory sequence was devised in August 1966, after several episodes had been filmed, and shortly before the series was due to debut. It is the result of the combined input of several people, including Star Trek creator Gene Roddenberry and producers John D. F. Black and Bob Justman. Under their influence, Roddenberry's original narrative:
This is the adventure of the United Space Ship Enterprise. Assigned a five year galaxy patrol, the bold crew of the giant starship explores the excitement of strange new worlds, uncharted civilizations, and exotic people. These are its voyages and its adventures.
The quotation went through several revisions before being selected to be used in the TV series.
The words "no one" were substituted for the original sequence's "no man" in the conclusion of Star Trek VI: The Undiscovered Country as a gender-neutral and race-neutral quote in conjunction to the peace treaty between the Klingons and Federation at the end of the movie. This alternate wording had already been in use in the introductory sequence for Star Trek: The Next Generation, now narrated by Patrick Stewart:
Space: the final frontier. These are the voyages of the starship Enterprise. Its continuing mission: to explore strange new worlds, to seek out new life and new civilizations, to boldly go where no one has gone before.