Khafaf bin Ima reported,

The Messenger of Allah ﷺ said during a prayer, "O Allah, curse the tribes of Banu Lihyan, Ril, Zakwan, and Usayya, for they have disobeyed Allah and His Messenger. As for Ghifar, may Allah forgive them, and as for Aslam, may Allah keep them safe."

Azami 2844

Sahih

عن خفاف بن إيماء الغفاري قال

قال رسول الله ﷺ في صلاة: اللهم العن بني لحيان ورعلا وذكوان، وعصية عصوا الله حلقة الى ورسوله. غفار غفر الله لها، وأسلم سالمها الله.

الأعظمي 2844صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Prayer
Chapter
Witr prayer
Section
Recommendation of qunut in prayers when a calamity befalls the Muslims, and saying it aloud
Numbering
Jami al-Kamil 2844 (2nd edition)
Azami 2844