Ibn 'Umar (RAA) narrated that the Messenger of Allah (ﷺ) said:
"A believer who mixes with people and endures their annoyance is better than the one who does not mix with them and does not endure their annoyance." Related by Ibn Majah with a good chain of narrators. At-Tirmidhi reported the hadith without mentioning the Companion. (IT)
English reference (IT): Book 16, Hadith 1579 (IT)
Arabic reference (IT): Book 16, Hadith 1536 (IT)