Sunan Abi Dawud, Book 23, Hadith 42 (Abu Dawud 3368)

Narrated 'Abdullah bin 'Umar:

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.