Umayr reported,

My master ordered me to cure some meat, then a poor man came by and I fed him from it. When my master found out, he beat me. So I went to the Messenger of Allah ﷺ, who summoned him and asked, "Why did you beat him?"He replied, "He gives away my food without my telling him to." Another time he said, "Without my permission."The Messenger of Allah ﷺ said, "The reward is shared between the two of you."

Nasai 2538

Sahih

أخبرنا قتيبة قال حدثنا حاتم عن يزيد بن أبي عبيد قال سمعت

عميرا مولى آبي اللحم قال

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

النسائي 2538صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Nasai Sughra
Book
Zakat
Chapter
Charity of the slave
Numbering
Darussalam 2538
Nasai 2538