Abdullah ibn Umar reported: The Messenger of Allah, peace and blessings be upon him, raised his head from the last bowing in dawn prayer, saying, “O Allah, curse this person, and this person, and this person,” Then, Allah revealed the verse, “You have no say in the matter. It is up to Allah to turn to them in mercy or punish them, for they are surely wrongdoers.” (3:128)
Source: Ṣaḥīḥ al-Bukhārī 4559
Grade: Sahih (authentic) according to Al-Bukhari
Shaykh al-Islam Ibn Taymiyyah commented, “As for supplicating against a specific individual, as the Prophet had cursed this person or that person, it has been narrated that it is abrogated by His saying: You have no say in the matter… That is because it is not known if Allah will be pleased by a specific person’s destruction. Rather, their repentance might be accepted by Allah.”
Source: Majmū’ al-Fatāwá 8/335
عَنْ ابْنِ عُمَرَ قَالَ قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ إِذَا رَفَعَ رَأْسَهُ مِنْ الرُّكُوعِ فِي الرَّكْعَةِ الْآخِرَةِ مِنْ الْفَجْرِ اللَّهُمَّ الْعَنْ فُلَانًا وَفُلَانًا وَفُلَانًا فَأَنْزَلَ اللَّهُ لَيْسَ لَكَ مِنَ ٱلْأَمْرِ شَىْءٌ أَوْ يَتُوبَ عَلَيْهِمْ أَوْ يُعَذِّبَهُمْ فَإِنَّهُمْ ظَـٰلِمُونَ
4559 صحيح البخاري كتاب تفسير القرآن سورة آل عمران باب ليس لك من الأمر شيء
قال ابن تيمية وَأَمَّا الدُّعَاءُ عَلَى مُعَيَّنِينَ كَمَا كَانَ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ يَلْعَنُ فُلَانًا وَفُلَانًا فَهَذَا قَدْ رُوِيَ أَنَّهُ مَنْسُوخٌ بِقَوْلِهِ لَيْسَ لَكَ مِنَ الْأَمْرِ شَيْءٌ … وَذَلِكَ لِأَنَّ الْمُعَيَّنَ لَا يَعْلَمُ إنْ رَضِيَ اللَّهُ عَنْهُ أَنْ يَهْلِكَ بَلْ قَدْ يَكُونُ مِمَّنْ يَتُوبُ اللَّهُ عَلَيْهِ
8/335 مجموع الفتاوى أقسام الناس في الغضب لله وفي شهود القدر