If you mean the moment Sonic travels back to his homeworld under his own will, that's episode 52—the only time he does so entirely on his own. There's another possibility you might be thinking of: the episode where the Blue Typhoon passes through a wormhole and has to battle a swarm of Metarex ships. That's around episode 65, though I'm not fully certain of the exact number.