Sayyiduna Anas (may Allah be pleased with him) narrates that the Prophet (peace and blessings be upon him) said: "Allah Almighty says: 'I am as My servant expects of Me. If he expects good, he will have it, and if he expects evil, he will have it.'"
Ahmad recorded it. Its chain contains Ibn Lahi'ah, and he has been criticised.
(Allamah al-Haythami says:) I say: Hadiths about having a good opinion (of Allah) will come later in the chapter on supplications and in other chapters, if Allah wills.
Hadith Referenceمجمع الزوائد ومنبع الفوائد / كتاب الجنائز / 3888