Skinner's Sense of Snow - S12-E8
Nelson: Hey, look how much Skinner makes: $25,000 a year.
Bart: Let's see, he's 40 years old times 25 grand. Whoa, he's a millionaire.
Skinner: I wasn't a principal when I was one.
Nelson: Plus, in the summer, he paints houses.
Milhouse: He's a billionaire.
Skinner: If I were a billionaire, why would I be living with my mother? [All the kids laugh at him.] They're just not responding to logic anymore.
Answer: I'm not sure if this is the one you're thinking of, but an episode of "Ray Bradbury Theatre," called "A Sound of Thunder," dealt with a similar matter: a group of hunters travel back in time to hunt dinosaurs, only to find things have changed when they get back because someone stepped on a butterfly.
Xofer