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."
أَنَّ نَبِيَّ اللَّهِ ﷺ بِهَذَا وَقَالَ كُلُّ رَجُلٍ لاَفًّا رَأْسَهُ فِي ثَوْبِهِ يَبْكِي وَقَالَ عَائِذًا بِاللَّهِ مِنْ سُوءِ الْفِتَنِ أَوْ قَالَ أَعُوذُ بِاللَّهِ مِنْ سُوءِ الْفِتَنِ