It is narrated from Sayyiduna Ubayy bin Ka'b (may Allah be pleased with him) that the Messenger of Allah (peace and blessings of Allah be upon him) said: "Indeed, some poetry contains wisdom."