Hadithcore
Al-Adab Al-Mufrad, 871
sahih· Al-Albani

In respect of "And as for the poets, is the misled who follow them. Do you not see how they ramble on in every style and that they say things which they do not do?" (26:223-225), Ibn 'Abbas said that it was abrogated and that an exception was made in His words, "except for those who believe and do right actions the kind of reversal they will receive." (26:226)

حَدَّثَنَا إِسْحَاقُ، قَالَ‏:‏ أَخْبَرَنَا عَلِيُّ بْنُ الْحُسَيْنِ قَالَ‏:‏ حَدَّثَنِي أَبِي، عَنْ يَزِيدَ النَّحْوِيِّ، عَنْ عِكْرِمَةَ، عَنِ ابْنِ عَبَّاسٍ‏:‏ ‏{‏وَالشُّعَرَاءُ يَتَّبِعُهُمُ الْغَاوُونَ‏}‏ إِلَى قَوْلِهِ‏:‏ ‏{‏وَأَنَّهُمْ يَقُولُونَ مَا لاَ يَفْعَلُونَ‏}‏، فَنَسَخَ مِنْ ذَلِكَ وَاسْتَثْنَى فَقَالَ‏:‏ ‏{‏إِلاَّ الَّذِينَ آمَنُوا‏}‏ إِلَى قَوْلِهِ‏:‏ ‏{‏يَنْقَلِبُونَ‏}‏‏.‏

References2 variants
In-Book Reference
Book 36, Hadith 16
English Reference
Book 36, Hadith 871