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."
قال رسول الله ﷺ في صلاة: اللهم العن بني لحيان، ورعلا، وذكوان، وعصية عصوا الله ورسوله، غفار غفر الله لها، وأسلم سالمها الله.
Muslim narrated it in "The Virtues of the Companions" (2517-186), from Abu Tahir, from Ibn Wahb, from Layth, from Imran bin Abu Anas, from Hanzala bin Ali, from Khufaf bin Eemaa Ghifari, who said, then he mentioned it.