Jami` at-Tirmidhi, Book 48, Hadith 110 (Tirmidhi 3563)
Abu Hurairah narrated that the Messenger of Allah (ﷺ) said:
“Call upon Allah while being certain of being answered, and know that Allah does not respond to a supplication from the heart of one heedless and occupied by play.”