It is narrated from Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) that a part of the verse "And as for the poets, only the deviators follow them" was abrogated and an exception was made, as He said: "Except those who believe, do righteous deeds and remember Allah much."
Hadith Referenceالأحاديث المختارة / عبد الله بن عباس بن عبد المطلب / 4625
Hadith Gradingالألبانی:حسن الإسناد (سنن أبي داود 5016) | زبیر علی زئی:إسناده حسن (سنن أبي داود 5016)
Hadith Takhrij«أخرجه أبو داود فى سننه برقم: 5000، والبيهقي فى السنن الكبرى برقم: 21173»