Abbad bin Shurahbil reported,

A man from the tribe of Banu Ghubar reported, "A year of severe famine struck us, so I came to Madinah. I entered one of its orchards, took some ears of grain, rubbed them, ate from them, and placed the rest in my cloak. The owner of the orchard came, beat me, and took my garment. I went to the Prophet ﷺ and told him what had happened."The Prophet ﷺ said to the man, "You did not feed him when he was hungry and starving, nor did you teach him when he was ignorant."Then the Prophet ﷺ ordered him to return the garment, and he ordered that the man be given a wasq of food, or half a wasq.

Ibn Majah 2298

Sahih

حدثنا أبو بكر بن أبي شيبة حدثنا شبابة بن سوار ح و حدثنا محمد بن بشار ومحمد بن الوليد قالا حدثنا محمد بن جعفر حدثنا شعبة عن أبي بشر جعفر بن أبي إياس قال

سمعت عباد بن شرحبيل

رجلا من بني غبر قال أصابنا عام مخمصة فأتيت المدينة فأتيت حائطا من حيطانها فأخذت سنبلا ففركته وأكلته وجعلته في كسائي فجاء صاحب الحائط فضربني وأخذ ثوبي فأتيت النبي ﷺ فأخبرته فقال للرجل ما أطعمته إذ كان جائعا أو ساغبا ولا علمته إذ كان جاهلا فأمره النبي ﷺ فرد إليه ثوبه وأمر له بوسق من طعام أو نصف وسق

ابن ماجه 2298صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Trade
Chapter
One who passes by others' livestock or orchard, may he take from it
Numbering
Darussalam 2298
Ibn Majah 2298