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:2403bAbū al-Rabīʿ al-ʿAtakī > Ḥammād > Ayyūb > Abū ʿUthmān al-Nahdī > Abū Mūsá al-Ashʿarī

This hadith has been transmitted on the authority of Abu Musa al-Ash'ari with a slight variation of wording.  

مسلم:٢٤٠٣bحَدَّثَنَا أَبُو الرَّبِيعِ الْعَتَكِيُّ حَدَّثَنَا حَمَّادٌ عَنْ أَيُّوبَ عَنْ أَبِي عُثْمَانَ النَّهْدِيِّ عَنْ أَبِي مُوسَى الأَشْعَرِيِّ

أَنَّ رَسُولَ اللَّهِ ﷺ دَخَلَ حَائِطًا وَأَمَرَنِي أَنْ أَحْفَظَ الْبَابَ بِمَعْنَى حَدِيثِ عُثْمَانَ بْنِ غِيَاثٍ