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."
أَنَّهُ سَمِعَ النَّبِيَّ ﷺ حِينَ رَفَعَ رَأْسَهُ مِنْ صَلاَةِ الصُّبْحِ مِنَ الرَّكْعَةِ الآخِرَةِ قَالَ اللَّهُمَّ الْعَنْ فُلاَنًا وَفُلاَنًا يَدْعُو عَلَى أُنَاسٍ مِنَ الْمُنَافِقِينَ فَأَنْزَلَ اللَّهُ ﷻ { لَيْسَ لَكَ مِنَ الأَمْرِ شَىْءٌ أَوْ يَتُوبَ عَلَيْهِمْ أَوْ يُعَذِّبَهُمْ فَإِنَّهُمْ ظَالِمُونَ }