It is narrated from Sayyiduna Khufaf bin Ima' bin Rahadah al-Ghifari (may Allah be pleased with him); he said: The Prophet (peace and blessings be upon him) led us in the Fajr prayer. When he raised his head from the last rak'ah, he said: "May Allah curse Lihyan, Ri'l, Dhakwan and Usayyah, who disobeyed Allah and His Messenger. Aslam, may Allah keep them safe, and Ghifar, may Allah forgive them." Then he fell down in prostration. When he had completed the prayer, he turned his face towards the people and said: "O people, it was not I who said this; rather, Allah, the Mighty and Majestic, said it."
Hadith Referenceالمعجم الكبير للطبراني / باب الخاء / 4158