Sayyiduna Khufaf bin Ima' al-Ghifari (may Allah be pleased with him) narrates that the Prophet (peace and blessings be upon him) used to say in the morning prayer: "O Allah, curse Banu Lihyan, Ri'l and Dhakwan, and Usayyah too, who disobeyed Allah and His Messenger; may Allah forgive Banu Ghifar, and may Allah keep Banu Aslam safe."
(293) Chapter: Abandoning qunut in all the prayers other than Subh once the calamity has lifted, and (qunut) in the Subh prayer for a people or against a people by their names or their tribes
The chapter on abandoning qunut in the remaining prayers besides the morning prayer after the calamity has ended, and on supplicating in the morning prayer for or against a people by naming them or their tribes.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الصلاة / 3099