It is narrated from Sayyiduna Abbas bin Mirdas (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) supplicated for his Ummah on the evening of Arafah for forgiveness and mercy, and he supplicated a great deal. Allah, the Mighty and Majestic, answered him (peace and blessings be upon him): "I have done so and have forgiven your Ummah, except for whoever among them has wronged another." He (peace and blessings be upon him) said: "O my Lord, You are able to forgive the wrongdoer and to give the wronged person a reward better than the wrong done to him." That evening there was only this. Then when the next morning came, he (peace and blessings be upon him) supplicated again for his Ummah on the morning at Muzdalifah, and only a little while had passed when the Prophet (peace and blessings be upon him) smiled. Some of his (peace and blessings be upon him) Companions (may Allah be pleased with them) said: "O Messenger of Allah, may my father and mother be ransomed for you! You have smiled at a time when you do not usually smile. What made you laugh? May Allah keep you smiling always." He (peace and blessings be upon him) said: "I smiled at the state of the enemy of Allah, Iblis. When he learned that Allah, the Mighty and Majestic, had accepted my supplication concerning my Ummah and had forgiven the wrongdoer, he began crying out ruin and woe and throwing dust upon his head. I smiled on seeing his agitation and wailing."
Imam Abu Dawud (may Allah have mercy on him) narrated it through Isa bin Ibrahim al-Birki and Abu al-Walid al-Tayalisi (may Allah have mercy on them both).
And Imam Ibn Majah (may Allah have mercy on him) narrated it through Ayyub bin Muhammad al-Salihi (may Allah have mercy on him), and in his narration the name of the son of Kinanah is also stated.
Related hadith on this topic