Answer:
self-serving bias.
Explanation:
Self-serving bias is a cognitive trait that induces people to believe that the success achieved by doing something comes from internal factors such as self-effort, intelligence, insight. While when they perform negatively, they attribute to external factors such as economy, bad luck, influence from other people.