Khafaf bin Ima reported,

The Messenger of Allah ﷺ said during a prayer, "O Allah, curse Banu Lihyan, Ril, Zakwan, and Usayyah, for they disobeyed Allah and His Messenger. As for Ghifar, may Allah forgive them, and as for Aslam, may Allah grant them peace."

Azami 10521

Sahih

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

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

الأعظمي 10521صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Virtues of the tribes
Section
Virtues of Ghifar and Aslam
Numbering
Jami al-Kamil 10521 (2nd edition)
Azami 10521