Hafsa or Ayesha reported,

The Messenger of Allah ﷺ said, "It is not lawful for a woman who believes in Allah and the Last Day, or who believes in Allah and His Messenger, to mourn for any deceased person for more than three days, except for her husband."

Muslim 3735

Sahih

و حدثنا يحيى بن يحيى وقتيبة وابن رمح عن الليث بن سعد عن نافع أن صفية بنت أبي عبيد حدثته

عن حفصة أو عن عائشة أو عن كلتيهما

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

مسلم 3735صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Divorce
Chapter
Obligation of mourning restrictions during the waiting period after a husband's death and its prohibition otherwise except for three days
Numbering
Darussalam 3735
Muslim 3735