Big bang

In the mother of all ship-destroying episodes, we see the Enterprise-D destroyed no less than four times in a repeating time loop. The crew's building sense of deja-vu eventually enables them to send a message to the next loop warning themselves of the coming destruction and so breaking the pattern.