Hadithcore
Sahih Muslim, 2890 b
sahih

Amir b. Sa'd reported on the authority of his father that Allah's Messenger (ﷺ) came with a group of his Companions and he passed by the mosque of Banu Mu'awiya. The rest of the hadith is the same.

وَحَدَّثَنَاهُ ابْنُ أَبِي عُمَرَ، حَدَّثَنَا مَرْوَانُ بْنُ مُعَاوِيَةَ، حَدَّثَنَا عُثْمَانُ بْنُ حَكِيمٍ الأَنْصَارِيُّ، أَخْبَرَنِي عَامِرُ بْنُ سَعْدٍ، عَنْ أَبِيهِ، أَنَّهُ أَقْبَلَ مَعَ رَسُولِ اللَّهِ صلى الله عليه وسلم فِي طَائِفَةٍ مِنْ أَصْحَابِهِ فَمَرَّ بِمَسْجِدِ بَنِي مُعَاوِيَةَ ‏.‏ بِمِثْلِ حَدِيثِ ابْنِ نُمَيْرٍ ‏.‏

References2 variants
In-Book Reference
Book 54, Hadith 27
USC-MSA web (English) reference
Book 41, Hadith 6907 (deprecated numbering scheme)