From Sahih Muslim (Hadith 2368):
Umair, the freed slave of Abi'l-Lahm reported:I was the slave (of Abi'l-Lahm). I asked the Messenger of Allah (ﷺ) if I could give some charity out of my master's wealth. He said: Yes, and the reward is half and half between you two
Reference: Muslim 2368