It is narrated from Sayyiduna Anas bin Malik (may Allah be pleased with him) that a tray of unripe (busr) dates was brought to the Prophet (peace and blessings be upon him), and he (peace and blessings be upon him) recited (as an illustration): "The example of a good word (Allah has set forth)."
Imam Abu Ya'la al-Mawsili (may Allah have mercy on him) narrated it through Ghassan (may Allah have mercy on him) from Hammad (may Allah have mercy on him) as marfu' (attributed to the Prophet).