The yogi whose happiness is within, whose rest is within, whose light is within — that yogi, having become one with Brahman, attains brahma-nirvana.
Three times Krishna says 'within' — happiness within, rest within, light within. Those who search outside keep wandering. The one who finds all three inside needs nothing from the outside. That person is free.