It is narrated from Sayyiduna Abu Umamah al-Bahili (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) said: "People are like a fruit-bearing tree, and soon you will become a thorny tree. If you criticise them, they will criticise you; if you leave them, they will not leave you; and if you flee from them, they will pursue you." It was said: "O Messenger of Allah, then what is the way out of this?" He (peace and blessings be upon him) said: "Lend them something of your honour by bearing with them, for the day of your need."
Hadith Referenceالمعجم الكبير للطبراني / باب الصاد / 7544