Umm Habiba bint Abu Sufyan reported,

When the news of her father's death reached her, she called for perfume and rubbed it on her arms. She said, "I have no need for perfume, except that I heard the Prophet ﷺ say, 'It is not lawful for a woman who believes in Allah and the Last Day to mourn for any deceased person beyond three days, except for a husband, for whom she mourns four months and ten days.'"

Bukhari 5345

Sahih

حدثنا محمد بن كثير عن سفيان عن عبد الله بن أبي بكر بن عمرو بن حزم حدثني حميد بن نافع عن زينب بنت أم سلمة

عن أم حبيبة بنت أبي سفيان

لما جاءها نعي أبيها دعت بطيب فمسحت ذراعيها وقالت ما لي بالطيب من حاجة لولا أني سمعت النبي ﷺ يقول لا يحل لامرأة تؤمن بالله واليوم الآخر تحد على ميت فوق ثلاث إلا على زوج أربعة أشهر وعشرا

البخاري 5345صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Divorce
Chapter
And those who are taken in death among you and leave wives behind" to His saying, "aware of what you do
Numbering
Darussalam 5345
Bukhari 5345