It is narrated from Sayyiduna Khufaf bin Ima' bin Rahadah al-Ghifari (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said during prayer: "O Allah, curse Banu Lihyan, Ri'l, Dhakwan and Usayyah, who disobeyed Allah. As for Ghifar, may Allah forgive them, and as for Aslam, may Allah keep them safe."
Hadith Referenceالمعجم الكبير للطبراني / باب الخاء / 4157