Season 3 Episode 18 - Shades of Grey
When the Tolan refuse to share technology, even after SG-1 saved the planet from a gou'ald attack, Jack gets mad and steals a device from them. Jack does not see how that was wrong, and can choose between courtmartial or early retirement. He prefers the retirement, and gets contacted by Colonel Maybourne. Maybourne tells Jack that there is an offworld base that has a few teams that retrieve alien technology the hard way when the SG teams fail to do so the diplomatic way. Jack requests to be sent to Eudora (from the episode A Hundred Days) to retire. From there he then dials Maybourne's off world base to become a team leader there.