What is the episode of Simpsons were at start Lisa having a sleepover?
The episode you are thinking of is
"Lisa's First Word" from Season 4. It's a flashback episode that tells the story of Lisa's first word, "Bart."
The episode starts with Lisa having a sleepover with her friends, but quickly shifts to a flashback sequence.