I heard 'Umar say: The Prophet ﷺ used to give me things and I would say: Give it to one who has more need of it than me. Then one time he gave me some wealth and I said: Give it to one who has more need of it than me. The Prophet ﷺ said: ʿTake it and keep it or give it in charity. Whatever of this wealth comes to you when you are not hoping for it or asking for it, take it, otherwise do not hanker after it.” It was narrated from Salim, that his father said: I heard ‘Umar say: The Messenger of Allah ﷺ used to give me things... and he mentioned a similar hadeeth. (Using translation from Aḥmad 136)
سَمِعْتُ عُمَرَ بْنَ الْخَطَّابِ ؓ يَقُولُ كَانَ رَسُولُ اللهِ ﷺ يُعْطِينِي الْعَطَاءَ فَأَقُولُ أَعْطِهِ أَفْقَرَ إِلَيْهِ مِنِّي حَتَّى أَعْطَانِي مَرَّةً مَالًا فَقُلْتُ أَعْطِهِ أَفْقَرَ إِلَيْهِ مِنِّي فَقَالَ لِي رَسُولُ اللهِ ﷺ خُذْهُ فَتَمَوَّلْهُ أَوْ تَصَدَّقْ بِهِ وَمَا جَاءَكَ مِنْ هَذَا الْمَالِ وَأَنْتَ غَيْرُ مُشْرِفٍ وَلَا سَائِلٍ فَخُذْهُ وَمَا لَا فَلَا تُتْبِعْهُ نَفْسَكَ