The Ulam-Hyers stability of an ordinary differential equation via Gronwall lemmas