Ibn Saadi reported,

Umar bin Khattab رضي الله عنه appointed me to collect the zakat. When I had finished and delivered it to him, he ordered that I be given a payment for my work.I said, "I worked only for Allah, and my reward is with Allah."He replied, "Take what you are given. I myself worked in this capacity during the time of the Messenger of Allah ﷺ, and he assigned me a payment. I said to him what you have just said to me, and the Messenger of Allah ﷺ told me, 'When you are given something without asking for it, eat from it and give in charity.'"

Azami 4017

Sahih

عن ابن الساعدي المالكي أنه قال

استعملني عمر بن الخطاب رضي الله عنه على الصدقة فلما فرغت منها وأديتها إليه أمر لي بعمالة. فقلت: إنما عملت الله وأجري على الله، فقال: خذ ما أعطيت فإني عملت على عهد رسول الله ﷺ فعملني، فقلت مثل قولك فقال لي رسول الله ﷺ: إذا أعطيت شيئا من غير أن تسأل فكل وتصدق.

الأعظمي 4017صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Zakat
Chapter
Tax collector
Section
Collector of charity is entitled to provision, due to His saying
Numbering
Jami al-Kamil 4017 (2nd edition)
Azami 4017