Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
muslim:2890bIbn Abū ʿUmar > Marwān b. Muʿāwiyah > ʿUthmān b. Ḥakīm al-Anṣārī > ʿĀmir b. Saʿd from his father

Amir b. Sa'd reported on the authority of his father that Messenger of Allah ﷺ 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.  

مسلم:٢٨٩٠bوَحَدَّثَنَاهُ ابْنُ أَبِي عُمَرَ حَدَّثَنَا مَرْوَانُ بْنُ مُعَاوِيَةَ حَدَّثَنَا عُثْمَانُ بْنُ حَكِيمٍ الأَنْصَارِيُّ أَخْبَرَنِي عَامِرُ بْنُ سَعْدٍ عَنْ أَبِيهِ

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