Ultimate attribution error
The ultimate attribution error is an attribution error made when making in-group and out-group attributions, resulting in in-group favoritism. The error occurs when attributions of outgroup behavior are more negative and attributions of ingroup behavior are more positive.
Source: Wikipedia — Ultimate attribution error (CC BY-SA 4.0)