Mishkat al-Masabih 1288
عَنْ أَبِي هُرَيْرَةَ: أَنَّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ كَانَ إِذَا أَرَادَ أَنْ يَدْعُوَ عَلَى أَحَدٍ أَوْ يَدْعُوَ لِأَحَدٍ قَنَتَ بَعْدَ الرُّكُوعِ فَرُبَّمَا قَالَ إِذَا قَالَ: سَمِعَ اللَّهُ لِمَنْ حَمِدَهُ رَبَّنَا لَكَ الْحَمْدُ: اللَّهُمَّ أَنْج الْوَلِيد بن الْوَلِيد وَسَلَمَة ابْن هِشَام وَعَيَّاش بن رَبِيعَةَ اللَّهُمَّ اشْدُدْ وَطْأَتَكَ عَلَى مُضَرَ وَاجْعَلْهَا سِنِينَ كَسِنِي يُوسُفَ يَجْهَرُ بِذَلِكَ وَكَانَ يَقُولُ فِي بَعْضِ صَلَاتِهِ: اللَّهُمَّ الْعَنْ فُلَانًا وَفُلَانًا لِأَحْيَاءٍ مِنَ الْعَرَبِ حَتَّى أَنْزَلَ اللَّهُ: (لَيْسَ لَك من الْأَمر شَيْء) الْآيَة)
From Abu Hurayrah: When the Messenger of Allah ﷺ wanted to supplicate against someone or for someone, he would make qunut after bowing. Sometimes, when he said "Samiʿa Allahu liman hamidah, Rabbana laka al-hamd", he would say: "O Allah, save al-Walid ibn al-Walid, Salamah ibn Hisham and ʿAyyash ibn Abi Rabiʿah. O Allah, make Your tread severe upon Mudar, and make it years [of famine] like the years of Yusuf," saying that aloud. In some of his prayers he would say: "O Allah, curse so-and-so and so-and-so," [referring] to tribes of the Arabs, until Allah revealed: "Not for you [O Muhammad] is anything of the matter" — the verse.