Sahih al-Bukhari 5345
Muhammad bin Kathir told us. He narrated from Sufyan (Thauri), Sufyan from Abdullah bin Abi Bakr bin Amr bin Hazm, that Humaid bin Nafi' told me. He narrated from Hazrat Zainab bint Umm Salamah (ra), Hazrat Zainab (ra) from Hazrat Umm Habibah bint Abi Sufyan (ra), that when she received the news of her father's death, she sent for perfume and applied it, rubbing her hand over her arms, and said: I would have had no need of perfume had I not heard the Prophet (saw) saying: “It is not lawful for any woman who believes in Allah and the Last Day to mourn for a dead person for more than three nights, except that for her husband she should mourn for four months and ten days.”
AI-translated by Islam-Today
Book 50: "And those of you who die and leave behind wives..."