The Prophet ﷺ said, "It is not lawful for a woman to mourn for any deceased person beyond three days, except for a husband."
حدثنا أبو بكر بن أبي شيبة حدثنا سفيان بن عيينة عن الزهري عن عروة
عن النبي ﷺ قال لا يحل لامرأة أن تحد على ميت فوق ثلاث إلا على زوج
Reported by Muslim, Divorce, previous chapter, no. 1491, from Abu Bakr bin Abu Shayba and others, 1491.