Sunan Ibn Majah, Book 10, Hadith 2164 (In-Book) ⓘ
It was narrated from Hafsah the wife of the Prophet that: 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 for more than three days, except for her husband."
حَدَّثَنَا هَنَّادُ بْنُ السَّرِيِّ، حَدَّثَنَا أَبُو الأَحْوَصِ، عَنْ يَحْيَى بْنِ سَعِيدٍ، عَنْ نَافِعٍ، عَنْ صَفِيَّةَ بِنْتِ أَبِي عُبَيْدٍ، عَنْ حَفْصَةَ، زَوْجِ النَّبِيِّ ـ صلى الله عليه وسلم ـ قَالَتْ قَالَ رَسُولُ اللَّهِ ـ صلى الله عليه وسلم ـ " لاَ يَحِلُّ لاِمْرَأَةٍ تُؤْمِنُ بِاللَّهِ وَالْيَوْمِ الآخِرِ أَنْ تُحِدَّ عَلَى مَيِّتٍ فَوْقَ ثَلاَثٍ إِلاَّ عَلَى زَوْجٍ " .
also referenced under: Hadith 2086 (Reference) & Volume 3, Book 10, Hadith 2086 (DarusSalam)