Sa'id bin al-Musayyib (may Allah have mercy on him) said: The waiting period is counted from the day the husband dies or the day he divorces.