Voyager discovers replicator technology on a pre-warp planet, which is very unusual. Chakotay and Paris beam down to the planet to investigate. They discover two Ferengi (who first appeared in the Star Trek: The Next Generation episode "The Price"), pretending to be prophets to the native people.
When the Ferengi are beamed aboard USS Voyager they refuse to be returned to the Alpha Quadrant and are returned to the planet. Meanwhile a wormhole is detected and it is traced to the Alpha Quadrant. The wormhole being the same one the Ferengi had come through, years ago. This would be a shortcut home for Voyager, the only problem is that the Delta Quadrant side moves around erratically. Harry Kim and B'Elanna Torres work on a way to stabilize the wormhole while Neelix, disguised as a Ferengi, travels back to the planet. He pretends to be a representative of the Ferengi ruler, the Grand Nagus and demands the two return to the Alpha Quadrant.
Neelix is dismissed as a fake and the Ferengi attempt to kill him. Neelix barely survives the assault and the natives uncover the situation. They become confused and declare all the Ferengi, including Neelix, are to reach home by being burned alive. Neelix and the others are beamed away at the last moment and the natives are convinced their prophecy has come true.
Back on Voyager, the Ferengi manage to steal back their shuttlecraft, which Voyager had confiscated. They end up being sucked into the wormhole, which destabilizes enough so that it is worthless to Voyager.