Welcome . What was the speedometer doing when this happened? If it was going crazy, then you need to change the Vehicle Speed Sensor tomorrow.
In any case, when was the last time you changed the ATFluid? If more than 2 years or 20k miles, try that first. Also check to see if it is low on fluid now.
ATFLuid change in Duratec Maintenance-Read First