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.