Hadithcore
Sahih al-Bukhari, 7090
sahih

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."

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

References2 variants
In-Book Reference
Book 92, Hadith 41
USC-MSA web (English) reference
Vol. 1, Book 88, Hadith 211 (deprecated numbering scheme)