Sayyiduna Ibn Umar (may Allah be pleased with them both) said that the Messenger of Allah (peace and blessings be upon him) said: "There is no cutting off of the hand (for theft) of livestock except what is outside the pen, nor of fruit except what has been gathered in the threshing floor."
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 13241