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.
bukhari:7090ʿAbbās al-Narsī > Yazīd b. Zurayʿ > Saʿīd > Qatādah > Anas > Nabī Allāh ﷺ Bihadhā

The the above hadith was narrated by Anas through another chain and said (with the wording) "and every man had his head wrapped in his garment and weeping". And he said (with the wording) "seeking refuge with Allah from the evil of afflictions" or he said "I seek refuge with Allah from the evil of afflictions."  

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

أَنَّ نَبِيَّ اللَّهِ ﷺ بِهَذَا وَقَالَ كُلُّ رَجُلٍ لاَفًّا رَأْسَهُ فِي ثَوْبِهِ يَبْكِي وَقَالَ عَائِذًا بِاللَّهِ مِنْ سُوءِ الْفِتَنِ أَوْ قَالَ أَعُوذُ بِاللَّهِ مِنْ سُوءِ الْفِتَنِ