Stargate SG-1: Season 5, Episode 20
SG-1 must turn to a pair of convicted criminals to save a world from annihilation by the Goa'uld.