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, "O Allah, curse so-and-so, so-and-so, and so-and-so," after saying, "Allah hears whoever praises Him. Our Lord, to You belongs all praise."Then Allah the Exalted revealed, "Not for you is the matter at all" until His statement, "for indeed, they are wrongdoers" [Aal Imran 3:128].

Azami 12095

Sahih

عن عبد الله بن عمر

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

الأعظمي 12095صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Tafsir of the great Quran
Chapter
Virtues of Surah Baqarah
Section
His saying, "It is not for you to decide anything of the matter, or He may turn to them in forgiveness, or punish them, for indeed they are wrongdoers"
Numbering
Jami al-Kamil 12095 (2nd edition)
Azami 12095