Where No Man Has Gone Before

While exploring the edge of the galaxy, the Enterprise encounters an energy barrier that gives two crewmen godlike powers.