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. (Using translation from Muslim 1025a)
كُنْتُ مَمْلُوكًا فَسَأَلْتُ النَّبِيَّ ﷺ أَتَصَدَّقُ مِنْ مَالِ مَوَالِيَّ بِشَيْءٍ قَالَ نَعَمْ وَالْأَجْرُ بَيْنَكُمَا نِصْفَانِ