This is narrated from Amr bin Dinar (may Allah have mercy on him).
And Imam al-Shafi'i (may Allah have mercy on him) said: "It is also narrated from Sayyiduna Sa'd bin Abi Waqqas (may Allah be pleased with him) that he sold a garden of his, then its buyer was struck by a calamity (on the fruit), and he took the price from him; and I do not know whether this (report) is established or not."
Sayyiduna Anas bin Malik (may Allah be pleased with him) says that the Messenger of Allah (peace and blessings be upon him) forbade selling fruits before they ripen. It was asked: What is its ripening? He (peace and blessings be upon him) said: "When they turn red." He (peace and blessings be upon him) said: "What do you think: when Allah withholds the fruit, then why do you consider your brother's wealth permissible?"
Hadith Referenceالسنن الكبرى للبيهقي / كتاب البيوع / 10623