The self-serving bias is the tendency to attribute personal successes to internal factors (such as skill or effort) while blaming failures on external factors (such as luck or circumstances).