Zaynab bint Abu Salama reported,

She informed her, saying, I went in to see Umm Habibah, the wife of the Prophet ﷺ, and she said, "I heard the Messenger of Allah ﷺ say, 'It is not lawful for a woman who believes in Allah and the Last Day to mourn for any deceased person for more than three days, except for a husband, for whom she mourns four months and ten days.'"

Bukhari 1281

Sahih

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

عن زينب بنت أبي سلمة

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

البخاري 1281صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Funerals
Chapter
Mourning of a woman for someone other than her husband
Numbering
Darussalam 1281
Bukhari 1281