the Prophet forbade selling fresh dates still on the tree for dried dates. Ibn 'Umar said: "Azid bin Thabit narrated to me, that Allah's Messenger permitted that in the case o 'Ayaya"'
Sunan an-Nasa'i Book 44, Hadith 84