Amr bin Shu'aib (may Allah be pleased with him) narrated from the Prophet (ﷺ) that he (ﷺ) said: "The hand is not to be cut for (stealing) hanging fruit. However, when it is gathered in the threshing floor (an open place), then the hand is to be cut for it."
Hadith Referenceمسند الإمام الشافعي / كتاب الحدود / 1595
Hadith Takhrijاخرجه ابوداود، اللقطعة، باب التعريف باللقطة (1710)، (1711)، (1390) - وابن ماجة، الحدود، باب من سرق من الحرز (2596) والنسائي قطع السارق الثمر يسرق بعد أن يؤويه الجرين (4961) وصححه ابن الجارود (827) - والحاكم : (381/4)۔
Rafi' bin Khadij (may Allah be pleased with him) narrated that he heard the Messenger of Allah (ﷺ) say: "The hand is not to be cut off for fruit or the pit of a date."
Hadith Referenceمسند الإمام الشافعي / كتاب الحدود / 1596
Hadith Takhrijأخرجه ابوداود، الحدود، باب مالا قطع فيه (4388) والنسائي قطع السارق، باب مالا قطع فيه (4964)۔ وصححه ابن الجارود (826) وابن حبان۔
Through another chain as well, it is narrated from Rafi' bin Khadij, may Allah be pleased with him, from the Prophet, peace and blessings be upon him, similar to the previous hadith.
Hadith Referenceمسند الإمام الشافعي / كتاب الحدود / 1597
Hadith Takhrijاخرجه ابن ماجة، الحدود، باب لا يقطع فى ثمر ولا كثر (2593) والترمذى، الحدود، باب ماجاء لا قطع في ثمر ولا كثر (1449) - وصححه ابن الجارود (826) وابن حبان۔