The Messenger of Allah (ﷺ) forbade the sale of fruits till they were clearly in good condition, forbidding it both to the seller and to the buyer.
Sunan Abi Dawud Book 23, Hadith 42