Sunan Abi Dawud, Book 14, Hadith 2614 (USC-MSA)

Narrated Abbad ibn Shurahbil: I suffered from drought; so I entered a garden of Medina, and rubbed an ear-corn. I ate and carried in my garment. Then its master came, he beat me and took my garment. He came to the Messenger of Allah who said to him: You did not teach him if he was ignorant; and you did not feed him if he was hungry. He ordered him, so he returned my garment to me, and gave me one or half a wasq (sixty or thirty sa's) of corn.

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

sunnah.com