Sunan Ibn Majah, Book 33, Hadith 100 (Ibn Majah 3758)

It was narrated from Ibn Abbas that the Prophet(ﷺ) said:

"In some poetry there is wisdom."