The story
Originally an imperative phrase used by British naval officers as a command, dating from no later than the Napoleonic Wars, and perhaps earlier. Popularized as the catchphrase of Captain Jean-Luc Picard in the television series Star Trek: The Next Generation (1987-1994).
Etymology from Wiktionary, CC BY-SA 4.0.