Twilight Sparkle wakes up after using an age spell on herself to try and make herself more mature but it does the opposite.
Princess Celestia comes to see Twilight and tells her friends that the only way Twilight can be restored is if she grows up naturally
Spike is taken to Canterlot by Princess Celestia before the age spell is cast.
This is based before Magical Mystery Cure.