Umayr bin Habib (may Allah be pleased with him), the grandfather of Abu Ja'far al-Khatmi, pledged allegiance to the Prophet (peace and blessings be upon him), and he advised his sons: O my sons! Beware of the gatherings of foolish people, for sitting with them is a disease. Whoever is forbearing with a fool is made happy by his forbearance, and whoever answers him regrets it. Whoever does not accept the little that a fool brings him will (end up) accepting much. When any of you intends to enjoin good and forbid evil, let him prepare himself to bear harm and hope for reward from Allah; whoever hopes for reward from Allah does not feel the harm.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب آداب القاضي / 20210