It was narrated from Ubbay bin Ka'b that the Messenger of Allah(ﷺ) said:
"In some poetry there is wisdom."