Aslam

Surah Ash-Shu'ara — 26:224
وَٱلشُّعَرَآءُ يَتَّبِعُهُمُ ٱلۡغَاوُۥنَ
As for poets, they are followed ˹merely˺ by deviants.

Commentary

And as for the poets that you claim Muhammad (peace be upon him) is from, those deviant from the path of guidance and steadfastness follow them and relate whatever poetry they say.

Read Tafsir Ibn Kathir