In this paper, by using the classical Banach contraction principle, we investigate and establish the stability in the sense of Ulam–Hyers and in the sense of Ulam–Hyers–Rassias for the integral equation which defines the mild solutions of an abstract Cauchy problem in Banach spaces.