Season 7 Episode 16: Back to the Past
SpongeBob and Patrick accidentally change past events with Mermaid Man's time machine.