Stargate SG1 - Season 5

The surviving members of SG-1 are lost in the unknown darkness of space and are being chased by Apophis. But before Apophis destroys them, an unknown ship attacks and gives SG-1 a chance to escape. Apophis's mother ship finds them again, but they soon find out that there are no lifeforms aboard. Instead they find an army of replicators aboard the ship and the self-destruct system has been activated. They escape the mother ship just as it explodes. Soon after, they receive a message from Teal'c who has been brought back to life and has escaped the attack on the mother ship. But SG-1 soon finds another problem: Teal'c has been brain washed.