Ikrimah narrates from Ibn Abbas (may Allah be pleased with them both) that {And the poets: the misguided follow them} [Surah al-Shu'ara: 224] was abrogated by this: {Except those who believe, do righteous deeds and remember Allah much} [Surah al-Shu'ara: 227].
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الشهادات / 21111