The Prophet ﷺ used to give me gifts, and I would say, "Give it to someone needier than me." This continued until one time he gave me some wealth, and I said to him, "Give it to someone needier than me."He said, "Take it, keep it as your property, and give it in charity. Whatever comes to you of this wealth while you are neither longing for it nor asking for it, take it. As for what does not come to you that way, do not let your heart pursue it."
أخبرنا عمرو بن منصور قال حدثنا الحكم بن نافع قال أنبأنا شعيب عن الزهري قال أخبرني سالم بن عبد الله أن عبد الله بن عمر قال سمعت
كان النبي ﷺ يعطيني العطاء فأقول أعطه أفقر إليه مني حتى أعطاني مرة مالا فقلت له أعطه أفقر إليه مني فقال خذه فتموله وتصدق به وما جاءك من هذا المال وأنت غير مشرف ولا سائل فخذه وما لا فلا تتبعه نفسك
Bukhari transmitted it, no. 7164, from the hadith of Shuayb bin Abu Hamza (see the previous hadith), and Muslim, Zakat, chapter on the permissibility of accepting without asking or seeking, no. 1045, from the hadith of Zuhri through him, and it is in Kubra, no. 2389.