Sahih al-Bukhari, Book 97, Hadith 130 (Bukhari 7219)

Narrated Abu Huraira:

Allah's Messenger (ﷺ) said, "Allah said, 'I am to my slave as he thinks of Me, (i.e. I am able to do for him what he thinks I can do for him). (See Hadith No. 502)