The Messenger of Allah ﷺ forbade the sale of fruit until its ripeness becomes apparent.
حدثنا عبد الرحمن عن سفيان عن عبد الله بن دينار سمعت
نهى رسول الله ﷺ أن تباع الثمرة حتى يبدو صلاحها
Its isnad is sahih, and it is a repetition of 5060, see also 5129.