Star Trek: The Next Generation
Hide and Q
S1 E10:
Riker is offered godlike powers in exchange for joining the Q continuum.
Starring
John de Lancie