The Messenger of Allah ﷺ said, "It is not permissible for a woman who believes in Allah and the Last Day to mourn for any deceased person beyond three days, except for a husband."
حدثنا عبد الصمد قال حدثنا سليمان بن كثير عن الزهري عن عروة
قال رسول الله ﷺ لا يحل لامرأة تؤمن بالله واليوم الآخر تحد على ميت فوق ثلاث إلا على زوج
Its isnad is sahih, mentioned previously at 25390.