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."
Related hadith on this topic