Hadithcore
Sahih Muslim, 2165 d
sahih

This hadith has been reported on the authority of A'znash with a slight variation of wording. 'A'isha understood their meaning and cursed them and Allah's Messenger (ﷺ) said:

'A'isha. (do not do that) for Allah does not like the use of harsh words, and it was at this stage that this verse of Allah. the Exalt. ed and Glorious. was revealed:" And when they come to you, they greet you with a greeting with which Allah greets you not" (Iviii. 8) to the end of the verse.

حَدَّثَنَاهُ إِسْحَاقُ بْنُ إِبْرَاهِيمَ، أَخْبَرَنَا يَعْلَى بْنُ عُبَيْدٍ، حَدَّثَنَا الأَعْمَشُ، بِهَذَا الإِسْنَادِ غَيْرَ أَنَّهُ قَالَ فَفَطِنَتْ بِهِمْ عَائِشَةُ فَسَبَّتْهُمْ فَقَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏

‏ مَهْ يَا عَائِشَةُ فَإِنَّ اللَّهَ لاَ يُحِبُّ الْفُحْشَ وَالتَّفَحُّشَ ‏

‏ ‏.‏ وَزَادَ فَأَنْزَلَ اللَّهُ عَزَّ وَجَلَّ ‏{‏ وَإِذَا جَاءُوكَ حَيَّوْكَ بِمَا لَمْ يُحَيِّكَ بِهِ اللَّهُ‏}‏ إِلَى آخِرِ الآيَةِ ‏.‏

References2 variants
In-Book Reference
Book 39, Hadith 14
USC-MSA web (English) reference
Book 26, Hadith 5387 (deprecated numbering scheme)