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:2730dMuḥammad b. Ḥātim > Bahz > Ḥammād b. Salamah > Yūsuf b. ʿAbdullāh b. al-Ḥārith > Abū al-ʿĀliyah > Ibn ʿAbbās

Ibn 'Abbas reported this hadith through another chain of transmitters with a sliglit variation of wording.  

مسلم:٢٧٣٠dوَحَدَّثَنِي مُحَمَّدُ بْنُ حَاتِمٍ حَدَّثَنَا بَهْزٌ حَدَّثَنَا حَمَّادُ بْنُ سَلَمَةَ أَخْبَرَنِي يُوسُفُ بْنُ عَبْدِ اللَّهِ بْنِ الْحَارِثِ عَنْ أَبِي الْعَالِيَةِ عَنِ ابْنِ عَبَّاسٍ

أَنَّ النَّبِيَّ ﷺ كَانَ إِذَا حَزَبَهُ أَمْرٌ قَالَ فَذَكَرَ بِمِثْلِ حَدِيثِ مُعَاذٍ عَنْ أَبِيهِ وَزَادَ مَعَهُنَّ لاَ إِلَهَ إِلاَّ اللَّهُ رَبُّ الْعَرْشِ الْكَرِيمِ