Stargate SG-1: Season 4, Episode 6
O'Neill and Teal'c are caught in a time loop in the SGC, and must relive the same 10 hours over and over again.