Sahih Muslim, Book 21, Hadith 70 (Muslim 3833)

Jabir (Allah be pleased with him) reported that Allah's Messenger (ﷺ) forbade (or forbade us) the sale of fruits until they are ripe in a good condition.