Hadithcore
Riyad as-Salihin, 619

Salamah bin Al-Akwa' (May Allah be pleased with him) reported:

Messenger of Allah (ﷺ) said, "Man continues to display haughtiness and arrogance until he is recorded among the arrogant and will be therefore afflicted with what afflicts them." <b>[At- Tirmidhi, who classified it as Hadith Hasan]</b>.

وعن سلمه بن الأكوع رضي الله عنه قال‏:‏ قال رسول الله صلى الله عليه وسلم‏:‏ “لا يزال الرجل يذهب بنفسه حتى يكتب في الجبارين، فيصيبه ما أصابهم” ‏(‏‏(‏رواه الترمذي وقال‏:‏ حديث حسن‏.‏ ‏(‏‏(‏“يذهب بنفسه” أى‏:‏ يرتفع ويتكبر)‏‏)‏‏.‏

References1 variant
In-Book Reference
Introduction, Hadith 619
Sharh · explanationclick to expand
<b>Guidance from the Hadith:</b><br> 1) Whoever imitates a people will be gathered with them on the Day of Resurrection. Allah Almighty says: {Gather those who committed wrong and their kinds}. i.e., their associates and their likes.<br> 2) A person who gives himself good advice should block the means to arrogance in his heart, lest he gradually becomes arrogant.