Actor-Observer Bias

Attributing our actions to external causes while attributing others’ actions to internal causes.

Wikipedia