Umar bin Khattab appointed me over the collection of zakat. When I finished the task and handed it over to him, he ordered that I be given a wage for my work.I said, "I worked only for the sake of Allah, and my reward is with Allah."He replied, "Take what you are given. I once worked during the time of the Messenger of Allah ﷺ, and he employed me. I said the same thing you have just said, and the Messenger of Allah told me, 'When you are given something without having asked for it, then eat from it and give in charity.'"
استعملني عمر بن الخطاب على الصدقة فلما فرغت منها، وأديتها إليه، أمر لي بعمالة، فقلت: إنما عملت لله وأجري على الله. فقال: خذ ما أعطيت، فإني عملت على عهد رسول الله ﷺ، فعملني، فقلت مثل قولك، فقال لي رسول الله: إذا أعطيت شيئا من غير أن تسأل، فكل وتصدق.
Muslim narrated it in the Book of Zakat (1045:112) from Qutayba bin Saeed, who said, Layth narrated to us, from Bukayr, from Busr bin Saeed, from Ibn Saadi Maliki, and he mentioned it. Bukhari also narrated it in the Book of Rulings (7163) through another route from Abdullah bin Saadi, similarly.As for the relatives of the Messenger of Allah ﷺ for whom charity is forbidden, they may not serve as collectors or gatherers of it, as in the hadith that follows.