Yazid bin Abi Ubayd said: I heard Umayr (may Allah be pleased with him), the slave of Abu al-Lahm, say: My master ordered me to prepare (dry) some meat, and a needy man came to me, so I fed him some of it. My master came to know of this and beat me. So I came to the Messenger of Allah (peace and blessings be upon him) and told him (peace and blessings be upon him) about it. He (peace and blessings be upon him) called him and said: "Why did you beat him?" He said: He gives away my food without my permission. He (peace and blessings be upon him) said: "The reward is shared between the two of you."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الزكاة / 7859