Abu Hurairah reported,

When the Messenger of Allah ﷺ wanted to invoke against someone or to supplicate for someone, he would recite the qunut after bowing. Sometimes, when he said, "Allah hears whoever praises Him," he would say, "Our Lord, to You belongs all praise. Allah, deliver Walid bin Walid, Salama bin Hisham, and Ayyash bin Abu Rabia. Allah, tighten Your grip on Mudar, and make it for them years like the years of Yusuf." He would say this aloud.In some of his prayers during the dawn prayer, he would say, "Allah, curse so-and-so and so-and-so," referring to certain Arab tribes, until Allah revealed "Not for you is the decision of the matter at all" [Al Imran 3:128].

Azami 12094

Sahih

عن أبي هريرة

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

الأعظمي 12094صحيح
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 12094 (2nd edition)
Azami 12094