Ibn Saadi reported,

Umar bin Khattab رضي الله عنه appointed me to collect the zakat. When I finished the task and delivered the proceeds to him, he ordered that I be given a payment for my work.I said, "I only did the work for the sake of 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 to do so. I said the same thing you are saying, 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 2408

Sahih

حدثنا قتيبة بن سعيد حدثنا ليث عن بكير عن بسر بن سعيد

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

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

مسلم 2408صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Zakat
Chapter
Permissibility of accepting what is given without asking or expecting it
Numbering
Darussalam 2408
Muslim 2408