Sayyiduna Abbad bin Shurahbil (may Allah be pleased with him) said: I came to Madinah while I was suffering severe hunger. I entered an orchard, took hold of a fruit-laden branch, ate from it, and put some into my garment. The owner of the orchard came; he beat me and also snatched from me the fruit I had picked. The narrator said: Then the two of us (the owner of the orchard and Abbad bin Shurahbil (may Allah be pleased with him)) went to the Prophet (peace and blessings be upon him) and mentioned the incident to him. The Prophet (peace and blessings be upon him) said: "If he did not know, you should have taught him; and you did not feed him, though he was hungry." Then he (peace and blessings be upon him) ordered a wasq of barley for me.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الضحايا / 19661