(30) باب إِحْدَادِ الْمَرْأَةِ عَلَى غَيْرِ زَوْجِهَا
Narrated Zainab bint Abi Salama:
When the news of the death of Abu Sufyan reached from Sham, Um Habiba on the third day, asked for a yellow perfume and scented her cheeks and forearms and said, "No doubt, I would not have been in need of this, had I not heard the Prophet (ﷺ) saying: "It is not legal for a woman who believes in Allah and the Last Day to mourn for more than three days for any dead person except her husband, for whom she should mourn for four months and ten days."
Reference: Sahih al-Bukhari 1280
In-book reference: Book 23, Hadith 42
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 2, Book 23, Hadith 370