From Sahih Muslim (Hadith 3865):
Ibn Umar (Allah be pleased with them) reported Allah's Messenger (ﷺ) as saying:Do not buy fruit until its good condition becomes clear, and (the danger) of blight is no more. He said: Its good condition becoming clear implies that it becomes red or yellow
Reference: Muslim 3865