The Prophet (ﷺ) forbade the sale of fruits till they were clearly in good condition , and (ordered that) they should not be sold but for dinar or dirham except Araya.
Sunan Abi Dawud Book 23, Hadith 48