When You Dish Upon a Star - S10-E5
Trivia: Another thing "The Simpsons" predicted: Towards the end of this episode, a sign outside of a film studio shows the 20th Century Fox logo with "A Division of Walt Disney Co" written under it. Nineteen years after this episode aired, Disney purchased many assets from 20th/21st Century Fox, including "The Simpsons."
When You Dish Upon a Star - S10-E5
Trivia: At the end, Homer prank calls the "old lady from Titanic." This is Gloria Stuart, who tied with Kim Basinger (one of the main guest stars of the episode) for the SAG Award for Best Supporting Actress.
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