Homer's Triple Bypass - S4-E11
Other mistake: In the beginning of the episode when Chief Wiggum orders a battering ram through The Front door of a house, Reverend Lovejoy opens the door and questions what they are doing. Chief Wiggum says "isn't this 742 Evergreen Terrace?" to which Lovejoy replies that it's the house next door. In the next shot, you see Snake pulling out of the garage and speeding away. Everybody knows that 742 Evergreen Terrace is, in fact, the Simpson residence. (00:02:40)
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