Sahih Muslim
Sahih Muslim 937
وَحَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، وَزُهَيْرُ بْنُ حَرْبٍ، وَإِسْحَاقُ بْنُ إِبْرَاهِيمَ، جَمِيعًا عَنْ أَبِي مُعَاوِيَةَ، - قَالَ زُهَيْرٌ حَدَّثَنَا مُحَمَّدُ بْنُ خَازِمٍ، - حَدَّثَنَا عَاصِمٌ، عَنْ حَفْصَةَ، عَنْ أُمِّ، عَطِيَّةَ قَالَتْ لَمَّا نَزَلَتْ هَذِهِ الآيَةُ { يُبَايِعْنَكَ عَلَى أَنْ لاَ يُشْرِكْنَ بِاللَّهِ شَيْئًا} { وَلاَ يَعْصِينَكَ فِي مَعْرُوفٍ} قَالَتْ كَانَ مِنْهُ النِّيَاحَةُ . قَالَتْ فَقُلْتُ يَا رَسُولَ اللَّهِ إِلاَّ آلَ فُلاَنٍ فَإِنَّهُمْ كَانُوا أَسْعَدُونِي فِي الْجَاهِلِيَّةِ فَلاَ بُدَّ لِي مِنْ أَنْ أُسْعِدَهُمْ . فَقَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم " إِلاَّ آلَ فُلاَنٍ " .
Umm Atiyya said that when this verse was revealed: Believing women pledge to you that they will not associate anything with Allah and will not disobey you in what is right, it included the prohibition on wailing. She said: I told the Messenger of Allah, Except for the family of so-and-so, for they supported me in lamentation during the pre-Islamic era, and I must support them in return. The Messenger of Allah said: Except for the family of so-and-so.
Translation notes
The Arabic quotes two clauses from Quran 60:12, rather than the entire verse. The unnamed family is left unspecified, as in the source.