If you mean leaving Earth, that's episode 52.
The lead-up matters though — in episode 51, Chris physically stops Sonic from entering the portal. Sonic only actually goes through in the following episode, which is why the two often get mixed up.