BAYHAQI 13169:
from Khudh Mā Uʿṭīt Faʾinnī Qad ʿAmilt —
Umar employed me to collect the sadaqah. When I finished doing so and gave it to him, he ordered payment to be given to me. I said: I did only for Allah’s sake, and my reward will come from Allah. He said: Take what you are given, for I acted (as a collector) during the time of the Messenger of Allah (May peace be upon him) and he assigned me a payment. Thereupon, I said the same kind of thing as you have said, to which Messenger of Allah (May peace be upon him) said: When you are given something without asking for it, you should use it for your own purpose and as sadaqah. (Using translation from Abū Dāʾūd 1647)
البيهقي ١٣١٦٩:
عن خذ ما اعطيت فءني قد عملت —
أَنَّهُ قَالَ اسْتَعْمَلَنِي عُمَرُ بْنُ الْخَطَّابِ ؓ عَلَى الصَّدَقَةِ فَلَمَّا فَرَغْتُ مِنْهَا وَأَدَّيْتُهَا إِلَيْهِ أَمَرَ لِي بِعِمَالَةٍ فَقُلْتُ إِنَّمَا عَمِلْتُ لِلَّهِ وَرَسُولِهِ وَأَجْرِي عَلَى اللهِ فَقَالَ خُذْ مَا أُعْطِيتَ فَإِنِّي قَدْ عَمِلْتُ عَلَى عَهْدِ رَسُولِ اللهِ ﷺ فَعَمَّلَنِي فَقُلْتُ مِثْلَ قَوْلِكَ فَقَالَ لِي رَسُولُ اللهِ ﷺ إِذَا أُعْطِيتَ شَيْئًا مِنْ غَيْرِ أَنْ تَسْأَلَ فَكُلْ وَتَصَدَّقْ
hadithunlocked.com