Abdullah bin Umar reported,

He heard the Messenger of Allah ﷺ, when he raised his head from bowing in the final rakah of the dawn prayer, say after pronouncing, "Allah hears whoever praises Him, our Lord, and to You belongs all praise," "Allah, curse so-and-so, so-and-so, and so-and-so." Then Allah revealed "Not for you is the decision at all, until His words, for indeed they are wrongdoers" [Al Imran 3:128].Hanzala bin Abu Sufyan reported that he heard Salim bin Abdullah say, "The Messenger of Allah ﷺ used to invoke against Safwan bin Umaya, Suhayl bin Amr, and Harith bin Hisham, so the verse was revealed, "Not for you is the decision at all, until His words, for indeed they are wrongdoers" [Al Imran 3:128]."

Bukhari 4069

Sahih

حدثنا يحيى بن عبد الله السلمي أخبرنا عبد الله أخبرنا معمر عن الزهري حدثني

سالم عن أبيه

أنه سمع رسول الله ﷺ إذا رفع رأسه من الركوع من الركعة الآخرة من الفجر يقول اللهم العن فلانا وفلانا وفلانا بعد ما يقول سمع الله لمن حمده ربنا ولك الحمد فأنزل الله {ليس لك من الأمر شيء} إلى قوله {فإنهم ظالمون} وعن حنظلة بن أبي سفيان سمعت سالم بن عبد الله يقول كان رسول الله ﷺ يدعو على صفوان بن أمية وسهيل بن عمرو والحارث بن هشام فنزلت {ليس لك من الأمر شيء} إلى قوله {فإنهم ظالمون}

البخاري 4069صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Expeditions
Chapter
It is not for you to decide. He may turn in mercy to them, or punish them, for they are wrongdoers
Numbering
Darussalam 4069
Bukhari 4069