That he heard Messenger of Allah ﷺ, when raising his head from bowing of the first rakʿa of the morning prayer, saying, "O Allah! Curse so-and-so and so-and-so" after he had said, "Allah hears him who sends his praises to Him. Our Lord, all the Praises are for you!" So Allah revealed:-- "Not for you (O Muhammad! )......(till the end of Verse) they are indeed wrong-doers." (3.128) (Using translation from Bukhārī 4069)
أَنَّهُ سَمِعَ رَسُولَ اللهِ ﷺ إِذَا رَفَعَ رَأْسَهُ مِنَ الرُّكُوعِ فِي الرَّكْعَةِ الْأَخِيرَةِ مِنَ الْفَجْرِ يَقُولُ اللهُمَّ الْعَنْ فُلَانًا وَفُلَانًا بَعْدَمَا يَقُولُ «سَمِعَ اللهُ لِمَنْ حَمِدَهُ رَبَّنَا وَلَكَ الْحَمْدُ» فَأَنْزَلَ اللهُ تَبَارَكَ وَتَعَالَى {لَيْسَ لَكَ مِنَ الْأَمْرِ شَيْءٌ أَوْ يَتُوبَ عَلَيْهِمْ أَوْ يُعَذِّبَهُمْ فَإِنَّهُمْ ظَالِمُونَ} [آل عمران 128]