The Messenger of Allah ﷺ led us in the dawn prayer, and when he raised his head from the final bowing he said, "May Allah curse Lihyan, Ril, Zakwan, and Usayya, who disobeyed Allah and His Messenger. Aslam, may Allah keep them safe, and Ghifar, may Allah forgive them."Then the Messenger of Allah ﷺ fell into prostration. When he finished, he recited to the people and said, "People, it was not I who said it, but Allah said it."
قال حدثنا يزيد بن هارون قال أخبرنا محمد بن إسحاق عن عمران بن أبي أنس عن حنظلة بن علي الأسلمي
صلى بنا رسول الله ﷺ الصبح ونحن معه فلما رفع رأسه من الركعة الآخرة قال لعن الله لحيانا ورعلا وذكوان وعصية عصت الله ورسوله أسلم سالمها الله وغفار غفر الله لها ثم وقع رسول الله ﷺ ساجدا فلما انصرف قرأ على الناس فقال يا أيها الناس إني أنا لست قلته ولكن الله عز وجل قاله
Its isnad is sahih. Imran bin Abu Anas Qurashi, who settled in Alexandria, is trustworthy, and his hadith appears in Muslim, as does that of Hanzala bin Ali bin Asqa Aslami. This hadith has already appeared at 13887 and 15051.