صحيح مسلم
From Sahih Muslim (Hadith 3871):
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
Reference: Muslim 3871