It is narrated from Sayyiduna Abbas bin Mirdas al-Sulami (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 Almighty answered him (peace and blessings be upon him): "I have done (so), except for the wrong that some of them do to others; as for the sins that are between Me and them, I have forgiven them." Then he (peace and blessings be upon him) said: "O my Lord, You are able to give this wronged person a reward better than the wrong done to him, and to forgive this wrongdoer." That evening he (peace and blessings be upon him) was given no answer. Then when the morning at Muzdalifah came, he (peace and blessings be upon him) repeated the same supplication, and Allah Almighty answered him (peace and blessings be upon him): "I have forgiven them." The narrator said: Then the Messenger of Allah (peace and blessings be upon him) smiled, and some of his (peace and blessings be upon him) Companions (may Allah be pleased with them) said: "O Messenger of Allah, you have smiled at a time when you did not (usually) smile." He (peace and blessings be upon him) said: "I smiled at (the state of) the enemy of Allah, Iblis. When he learned that Allah had accepted my supplication, he began crying out 'Woe! Ruin!' and throwing dust upon his head."
Sayyiduna Abbas bin Mirdas al-Sulami (may Allah be pleased with him) narrated something similar to it from the Prophet (peace and blessings be upon him).
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.