Sahl b. Abu Hathma said that God’s Messenger forbade the sale of fruit for dried dates but gave licence regarding the ariya for its sale on the basis of a calculation of what the dates would be when dry, yet those who bought them could eat them when fresh.
(Bukhari and Muslim.)