Sahih Muslim 2718: Divorce
Zainab says: I heard my mother, Hazrat Umm Salamah (ra), say: A woman came to the Messenger of Allah (saw) and said: O Messenger of Allah (saw)! My daughter's husband has died, and she has trouble in her eye. Shall I put kohl in it? The Messenger of Allah (saw) said: “No.” She said it two or three times. Each time he (saw) said: “No.” Then he (saw) said: “It is only four months and ten days, whereas in the Time of Ignorance (Jahiliyyah) one of you used to throw a piece of dung at the end of a year.” Humaid says: I said to Zainab: And what is meant by throwing a piece of dung at the end of the year? Hazrat Zainab (ra) said: When a woman's husband died, she would enter a hut and wear her worst clothes, and would use neither perfume nor anything else until a year had passed over her. Then an animal, a donkey or a goat or a bird, would be brought, and she would touch it; and whenever she touched anything, it (that thing) would die. Then she would come out and would be given a piece of dung. She would throw it, and after that she would use perfume or something else.
AI-translated by Islam-Today