It is reported from Imām Al-Shāfiʿī:

There were two men who used to visit Al-Aʿmash, one who was concerned with ḥadīth and one who was not. One day Al-Aʿmash became angry with the man who studied ḥadīth, so the other said to him, “If he ever got angry with me like he got angry with you I would never go back to him.” To this Al-Aʿmash said, “In that case he would be a fool like you, leaving what benefits him because of my bad character (behaviour).”

Al-Khaṭīb, Al-Jāmiʿ li Akhlāq Al-Rāwī 1:338.

It is also reported from Imām Al-Shāfiʿī:

It was said to Sufyān b. ʿUyaynah, “People come to you from around the world, and [sometimes] you get angry with them? They might depart and leave you.” He replied, “In that case they would be fools like you, leaving what benefits them because of my bad character (behaviour).”

Op. cit. p339.

It is reported that Muʿāfā b. ʿImrān said:

The one who gets angry against a scholar is like someone who gets angry with the pillars of a mosque.