It is narrated from Ibn Umar (may Allah be pleased with them both) that a divorced woman and a woman whose husband has died should count the waiting period from the very day on which her husband died or on which she was divorced.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب العدد / 15445