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."
أخبرنا قتيبة قال حدثنا حاتم عن يزيد بن أبي عبيد قال سمعت
أمرني مولاي أن أقدد لحما فجاء مسكين فأطعمته منه فعلم بذلك مولاي فضربني فأتيت رسول الله ﷺ فدعاه فقال لم ضربته فقال يطعم طعامي بغير أن آمره وقال مرة أخرى بغير أمري قال الأجر بينكما