An aphorism expressed in various ways, including:

Never attribute to malice that which can be adequately explained by stupidity.