Language:
كتاب التوحيد
97  
Oneness, Uniqueness of Allah (Tawheed)
(35)
Chapter: “…They want to change Allah’s Words….”
(35)
Sahih al-Bukhari 7505

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)

حَدَّثَنَا أَبُو الْيَمَانِ، أَخْبَرَنَا شُعَيْبٌ، حَدَّثَنَا أَبُو الزِّنَادِ، عَنِ الأَعْرَجِ، عَنْ أَبِي هُرَيْرَةَ، أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم قَالَ ‏ "‏ قَالَ اللَّهُ أَنَا عِنْدَ ظَنِّ عَبْدِي بِي ‏"‏‏.‏
Reference : Sahih al-Bukhari 7505
In-book reference : Book 97, Hadith 130
USC-MSA web (English) reference : Vol. 9, Book 93, Hadith 596
  (deprecated numbering scheme)