Not avoiding people and being patient with them is better
TIRMIDHI 2507:
from Ibn ʿUmar —
from the Prophet ﷺ, who said: The Muslim who mixes with the people and he is patient with their harm is better than the Muslim who does not mix with the people and is not patient with their harm.
الترمذي ٢٥٠٧:
عن ابن عمر —
عَنِ النَّبِيِّ ﷺ قَالَ «الْمُسْلِمَ إِذَا كَانَ يُخَالِطَ النَّاسَ وَيَصْبِرُ عَلَى أَذَاهُمْ خَيْرٌ مِنَ الْمُسْلِمِ الَّذِي لاَ يُخَالِطُ النَّاسَ وَلاَ يَصْبِرُ عَلَى أَذَاهُمْ»