It is narrated from Sayyiduna Zayd bin Thabit (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) permitted the sale of 'araya in exchange for dry dates and fresh dates.
Hadith Referenceالمعجم الكبير للطبراني / باب الزاي / 4829