Sahih al-Bukhari 5345
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
لاَ يَحِلُّ لاِمْرَأَةٍ تُؤْمِنُ بِاللَّهِ وَالْيَوْمِ الآخِرِ تُحِدُّ عَلَى مَيِّتٍ فَوْقَ ثَلاَثٍ، إِلاَّ عَلَى زَوْجٍ أَرْبَعَةَ أَشْهُرٍ وَعَشْرًا "
Narrated Zainab bint Um Salama:
When Um Habiba bint Abi Sufyan was informed of her father's death, she asked for perfume and rubbed it over her arms and said, "I am not in need of perfume, but I have heard the Prophet (ﷺ) saying, "It is not lawful for a lady who believes in Allah and the Last Day to mourn for more than three days except for her husband for whom the (mourning) period is four months and ten days."
Full reference and source
Sahih al-Bukhari 5345 In-book : Book 68, Hadith 90 USC-MSA web (English) : Vol. 7, Book 63, Hadith 257 (deprecated)
View source on Sunnah.com (opens in a new tab)