Khufaf bin Ima' al-Ghifari reported that the Messenger of Allah (ﷺ) aid in prayer: O Allah I curse the tribes of Lihyan, Ri'l, Dhakwan, and 'Usayya for they disobeyed Allah and His Messenger (ﷺ) . Allah pardoned (the tribe of) Ghifar and Allah granted protection to (the tribe of) Aslam.
• • •
Khufaf bin Ima' reported that the Messenger of Allah (ﷺ) (may peace he upon him), bowed (in prayer) and then lifted his head and then said: So far as the tribe of Ghifar is concerned, Allah had pardoned it, and Allah had granted protection to the tribe of Aslam, and as for the tribe of Usayya, it had disobeyed Allah and His Messenger, (and further said): O Allah! curse the tribe of Lihyan curse Ri'l, and Dhakwan, and then fell in prostration. It is after this that the cursing of the unbelievers got a sanction.
• • •
A hadith like this has been transmitted by Khufaf bin Ima' except this that he did not mention (these words): "cursing of unbelievers got a sanctions.
• • •