Yunus bin Maysarah bin Halbas (may Allah have mercy on him) said: We went to visit Yazid bin al-Aswad in his illness, and meanwhile Sayyiduna Wathilah bin al-Asqa' (may Allah be pleased with him) also came to him. When he saw him, he stretched out his hand and passed it over his face and chest, and it was the very hand with which he had pledged allegiance to the Messenger of Allah (peace and blessings be upon him). Sayyiduna Wathilah (may Allah be pleased with him) asked: "What do you think of your Lord?" He said: "I think well of Him." He said: "Then rejoice, for I heard the Messenger of Allah (peace and blessings be upon him) say: Allah Almighty says: 'I am as My servant thinks of Me; if he thinks well, then good, and if he thinks ill, then ill.'"
Hadith Referenceالمعجم الكبير للطبراني / باب الواو / 18435