"The Inner Light" is the 125th episode overall and the 25th and penultimate episode of the fifth season of the American science fiction television series Star Trek: The Next Generation. From Wikipedia
The showrunners say the finale’s arc was mapped from the outset, adding the Vezda as wholly new Star Trek canon.