Abu Hurairah reported,

The Messenger of Allah ﷺ said that Allah جل وعلا declares, "I am as My servant thinks of Me. If he thinks good of Me, then good is his, and if he thinks evil of Me, then evil is his."

Azami 154

Sahih

عن أبي هريرة

عن رسول الله ﷺ: إن الله جل وعلا يقول: أنا عند ظن عبدي بي، إن ظن خيرا فله، وإن ظن شرا فله.

الأعظمي 154صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Faith
Chapter
Qualities of faith
Section
Good opinion of Allah coupled with fear and hope
Numbering
Jami al-Kamil 154 (2nd edition)
Azami 154