أَخْبَرَنَا قُتَيْبَةُ، قَالَ حَدَّثَنَا أَبُو عَوَانَةَ، عَنْ عُبَيْدِ اللَّهِ بْنِ الأَخْنَسِ، عَنْ عَمْرِو بْنِ شُعَيْبٍ، عَنْ أَبِيهِ، عَنْ جَدِّهِ، قَالَ سُئِلَ رَسُولُ اللَّهِ صلى الله عليه وسلم فِي كَمْ تُقْطَعُ الْيَدُ قَالَ ‏"‏ لاَ تُقْطَعُ الْيَدُ فِي ثَمَرٍ مُعَلَّقٍ فَإِذَا ضَمَّهُ الْجَرِينُ قُطِعَتْ فِي ثَمَنِ الْمِجَنِّ وَلاَ تُقْطَعُ فِي حَرِيسَةِ الْجَبَلِ فَإِذَا آوَى الْمُرَاحَ قُطِعَتْ فِي ثَمَنِ الْمِجَنِّ ‏"‏ ‏.‏

It was narrated from 'Amr bin Shuaib, from his father, that his grandfather said: "The Messenger of Allah was asked: 'For how much is the hand (of the thief) to be cut off?' He said: 'The hand (of the thief) is not to be cut off for (stealing) fruit on the tree, but if (the fruit) has been taken to the place where it is stored to dry, then the (thief's) hand is to be cut off (if what is stolen is equivalent to) the price of a shield. The (thief's) hand is not to be cut off for a sheep (stolen) from the grazing land, but if it had been put in the pen, then the (thief's) hand is to be cut off (if what is stolen is equivalent to) the price of a shield."' Translation Not Available

Book Ref: Sunan An Nisai Book 46 Hadith 4957
Web Ref:  Sunan An Nisai Vol 5 Book 46 Hadith 4960