Sunan an-Nasa'i, Volume 2, Book 12, Hadith 1079 (DarusSalam)

It was narrated from Salim, from his father, that: He heard the Prophet, when he raised his head in the last rak'ah of the subh prayer, say: "O Allah, curse so-and-so and so-and-so," supplicating against some of the hypocrites. Then Allah revealed the words: "Not for you is the decision; whether He turns in mercy to (pardon) them or punishes them; verily, they are the wrongdoers."

أَخْبَرَنَا إِسْحَاقُ بْنُ إِبْرَاهِيمَ، قَالَ أَنْبَأَنَا عَبْدُ الرَّزَّاقِ، قَالَ حَدَّثَنَا مَعْمَرٌ، عَنِ الزُّهْرِيِّ، عَنْ سَالِمٍ، عَنْ أَبِيهِ، أَنَّهُ سَمِعَ النَّبِيَّ صلى الله عليه وسلم حِينَ رَفَعَ رَأْسَهُ مِنْ صَلاَةِ الصُّبْحِ مِنَ الرَّكْعَةِ الآخِرَةِ قَالَ ‏"‏ اللَّهُمَّ الْعَنْ فُلاَنًا وَفُلاَنًا ‏"‏ ‏.‏ يَدْعُو عَلَى أُنَاسٍ مِنَ الْمُنَافِقِينَ فَأَنْزَلَ اللَّهُ عَزَّ وَجَلَّ ‏{‏ لَيْسَ لَكَ مِنَ الأَمْرِ شَىْءٌ أَوْ يَتُوبَ عَلَيْهِمْ أَوْ يُعَذِّبَهُمْ فَإِنَّهُمْ ظَالِمُونَ ‏}‏ ‏.‏

sunnah.com