وعن جُندب بن عبدِ الله - رضي الله عنه - قَالَ: قَالَ رسولُ اللهِ - صلى الله عليه وسلم: «قَالَ رَجُلٌ: وَاللهِ لاَ يَغْفِرُ اللهُ لِفُلانٍ، فَقَالَ اللهُ - عز وجل: مَنْ ذا الَّذِي يَتَأَلَّى عَلَيَّ أَنْ لا أغْفِرَ لِفُلانٍ! فَإنِّي قَدْ غَفَرْتُ لَهُ، وَاحْبَطْتُ عَمَلَكَ». رواه مسلم.
It is narrated from Sayyiduna Jundub bin Abdullah (may Allah be pleased with him); he said that the Messenger of Allah (peace and blessings be upon him) said: "A man said: 'By Allah, Allah will not forgive so-and-so.' So Allah, the Mighty and Majestic, said: 'Who is it who swears by Me that I will not forgive so-and-so? I have indeed forgiven him, and I have nullified your deeds.'"
(Narrated by Muslim)
Brief Explanation
yata'alla: he swears; and al-aliyyah means an oath. (al-Nihayah 1/62)