It is narrated from Hazrat Ubayy bin Ka'b (may Allah be pleased with him) that the Noble Prophet (peace and blessings be upon him) said: Some poetry is based on wisdom.