Sahih Muslim 1488 c
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
قَدْ كَانَتْ إِحْدَاكُنَّ تَكُونُ فِي شَرِّ بَيْتِهَا فِي أَحْلاَسِهَا - أَوْ فِي شَرِّ أَحْلاَسِهَا فِي بَيْتِهَا - حَوْلاً فَإِذَا مَرَّ كَلْبٌ رَمَتْ بِبَعَرَةٍ فَخَرَجَتْ أَفَلاَ أَرْبَعَةَ أَشْهُرٍ وَعَشْرًا "
Zainab bint Umm Salama (Allah be pleased with her) reported on the authority of her mother that a woman lost her husband. (As her eyes were ailing) they (her kith and kin) entertained fear about her eyes, so they came to Allah's Apostle (ﷺ) and sought permission for the use of collyrium, whereupon Allah's Messenger (ﷺ) said:
One among you used to spend one year in a dungeon dressed in worst clothes. (And at the end of this period) she threw dung at the dog which happened to pass that way and then she came out (of her 'Idda). Can't she (wait) even for four months and ten days?
Full reference and source
Sahih Muslim 1488 c In-book : Book 18, Hadith 76 USC-MSA web (English) : Book 9, Hadith 3541 (deprecated)
View source on Sunnah.com (opens in a new tab)