Abu Hurairah reported,

The Messenger of Allah ﷺ, whenever he wished to invoke against someone or to pray for someone, would make qunut after the bowing. Sometimes, after saying, "Allah hears whoever praises Him, our Lord, to You belongs all praise," he would say, "O Allah, save Walid bin Walid, Salama bin Hisham, Ayyash bin Abu Rabia, and the oppressed believers. O Allah, tighten Your grip upon Mudar and make it years for them like the years of Yusuf."He would say this aloud. In some of his prayers, in the dawn prayer, he would say, "O Allah, curse so-and-so and so-and-so," referring to certain tribes of the Arabs, until Allah عز وجل revealed, "It is not for you to decide, whether He turns to them in mercy or punishes them, for indeed they are wrongdoers" [Al Imran 3:128].

Ahmad 7465

Sahih

حدثنا أبو كامل حدثنا إبراهيم يعني ابن سعد حدثنا ابن شهاب عن سعيد بن المسيب وأبي سلمة بن عبد الرحمن

عن أبي هريرة

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

أحمد 7465صحيح
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Abu Hurairah
Numbering
Darussalam 7465
Ahmad 7465