Sahih Muslim, Book 21, Hadith 68 (Muslim 3831)

Ibn Umar (Allah be pleased with them) reported Allah's Messenger' (ﷺ) as saying:

Do not buy fruits (on the trees) until their good condition becomes clear.