Jami` at-Tirmidhi, Volume 4, Book 25, Hadith 2000 (DarusSalam) ⓘ
Iylas bin Salamah bin Al-Akwa' narrated from his father that the Messenger of Allah said: "A man shall remain exalting himself until he is written among the tyrants, so that he suffers from their afflictions."
حَدَّثَنَا أَبُو كُرَيْبٍ، حَدَّثَنَا أَبُو مُعَاوِيَةَ، عَنْ عُمَرَ بْنِ رَاشِدٍ، عَنْ إِيَاسِ بْنِ سَلَمَةَ بْنِ الأَكْوَعِ، عَنْ أَبِيهِ، قَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم " لاَ يَزَالُ الرَّجُلُ يَذْهَبُ بِنَفْسِهِ حَتَّى يُكْتَبَ فِي الْجَبَّارِينَ فَيُصِيبُهُ مَا أَصَابَهُمْ " . قَالَ أَبُو عِيسَى هَذَا حَدِيثٌ حَسَنٌ غَرِيبٌ .
also referenced under: Hadith 2000 (Reference) & Book 27, Hadith 106 (In-Book)