It is narrated from Sayyiduna Ubayy bin Ka'b (may Allah be pleased with him): The Prophet (peace and blessings of Allah be upon him) said: "There is wisdom and insight in poetry."
Brief Explanation
(Commentary on Hadith 2738)
In the Noble Qur'an, Allah the Exalted has said: «﴿وَالشُّعَرَاءُ يَتَّبِعُهُمُ الْغَاوُونَ﴾ [الشعراء : 224]». The Noble Prophet sallallahu alayhi wa sallam has clarified that if there is truth, reality, and wisdom in poetry, then there is no harm in it.