It is narrated from Sayyiduna Mu'awiyah bin Haydah (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) said: Allah Almighty says: "I am as My servant thinks of Me."
Hadith Referenceالمعجم الكبير للطبراني / باب الميم / 17054