It is narrated from Jabir bin Abdullah (may Allah be pleased with them both) that the Messenger of Allah (ﷺ) forbade selling the fruit of trees for several years, and in the case of a calamity from the sky (which causes loss to the buyers of the fruit), he ordered that compensation be given for it. Imam Shafi’i (may Allah have mercy on him) said: “I heard Sufyan (may Allah have mercy on him) narrate this hadith many times; during the long period I stayed with him, he narrated this hadith so many times that I cannot count, and most of the time when I heard him narrate it, he did not mention ‘he ordered compensation for calamities’ (امر بوضع الجوائح), rather, he did not add anything to the Prophet’s (ﷺ) words ‘he forbade selling for years’ (نہی عن بیع السنین). Then later, he narrated ‘he ordered compensation for calamities.’” So Sufyan (may Allah have mercy on him) said: “Humaid used to mention something after the words ‘selling for years’ and before ‘compensation for calamities’ which I could not remember, and for this reason I refrained from mentioning the words ‘compensation for calamities,’ because I did not know what that thing was. And in this hadith, it is stated that in the case of a calamity from the sky, compensation should be given to the buyers for their loss.”
Hadith Referenceمسند الإمام الشافعي / كتاب البيوع / 1426
Hadith Takhrijاخرجه مسلم المساقاة، باب وضع الحوائج (1554)۔
Umrah narrates that in the time of the Messenger of Allah ﷺ, a man bought the dates of a garden. He took care of them until he suffered a loss, so he asked the owner of the garden to give him a concession, but the owner swore that he would not give any concession. Then the buyer went to the Messenger of Allah ﷺ and related the matter to him. The Messenger of Allah ﷺ said: "Did he swear an oath not to do a good deed?" When the owner of the garden heard this, he came to the Messenger of Allah ﷺ and said: "O Messenger of Allah! It is for him." (i.e., I have given the concession.)
Hadith Referenceمسند الإمام الشافعي / كتاب البيوع / 1428
Hadith Takhrijاخرجه مسلم ، المساقاة، باب استحباب الوضع من الدين (1557)۔