It is narrated from Sayyiduna Abu Sa'id al-Khudri (may Allah be pleased with him) that he heard the Messenger of Allah (peace and blessings be upon him) say: "Indeed, when Allah, the Mighty and Majestic, is pleased with a servant, He praises him for his good deeds with nine times as much good that he did not (himself) do; and when He is angry with a servant, He mentions him for his evil deeds with nine times as much evil that he did not do."
Abd bin Humayd, al-Harith bin Abi Usamah, Abu Ya'la and Ibn Hibban in his Sahih recorded this hadith. Imam Ahmad bin Hanbal also recorded it; in one narration the wording is "when He is pleased and when He is angry," and in another narration the wording is "when He loves and when He hates."