Sahih al-Bukhari, Book 80, Hadith 37 (Bukhari 6103)

Narrated Abu Huraira:

Allah's Messenger (ﷺ) said, "The invocation of anyone of you is granted (by Allah) if he does not show impatience (by saying, "I invoked Allah but my request has not been granted.")