Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
abudawud:3318Aḥmad b. Ṣāliḥ > Ibn Wahb > Yūnus > Ibn Shihāb > ʿAbdullāh b. Kaʿb b. Mālik from his father

To the Messenger of Allah ﷺ when his repentance was accepted: I should divest myself of my property. He then mentioned a similar tradition up to the words, "better for you".  

أبو داود:٣٣١٨حَدَّثَنَا أَحْمَدُ بْنُ صَالِحٍ حَدَّثَنَا ابْنُ وَهْبٍ أَخْبَرَنِي يُونُسُ عَنِ ابْنِ شِهَابٍ أَخْبَرَنِي عَبْدُ اللَّهِ بْنُ كَعْبِ بْنِ مَالِكٍ عَنْ أَبِيهِ

أَنَّهُ قَالَ لِرَسُولِ اللَّهِ ﷺ حِينَ تِيبَ عَلَيْهِ إِنِّي أَنْخَلِعُ مِنْ مَالِي فَذَكَرَ نَحْوَهُ إِلَى خَيْرٌ لَكَ  


See similar narrations below:

Collected by Ṭabarānī
tabarani:16207Ismāʿīl b. al-Ḥasan al-Khaffāf > Aḥmad b. Ṣāliḥ > Ibn Wahb > Yūnus > Ibn Shihāb > ʿAbdullāh b. Kaʿb b. Mālik from his father

[Machine] He said to the Messenger of Allah, ﷺ , when he came to him, "O Messenger of Allah, I will give charity from my wealth to Allah and His Messenger." The Messenger of Allah, ﷺ , said to him, "Keep some of your wealth, as it is better for you."  

الطبراني:١٦٢٠٧حَدَّثَنَا إِسْمَاعِيلُ بْنُ الْحَسَنِ الْخَفَّافُ ثنا أَحْمَدُ بْنُ صَالِحٍ ثنا ابْنُ وَهْبٍ أَخْبَرَنِي يُونُسُ عَنِ ابْنِ شِهَابٍ أَخْبَرَنِي عَبْدُ اللهِ بْنُ كَعْبِ بْنِ مَالِكٍ عَنْ أَبِيهِ

أَنَّهُ قَالَ لِرَسُولِ اللهِ ﷺ حِينَ تِيبَ عَلَيْهِ يَا رَسُولَ اللهِ إِنِّي أَنْخَلِعُ مِنْ مَالِي صَدَقَةً إِلَى اللهِ وَرَسُولِهِ فَقَالَ لَهُ رَسُولُ اللهِ ﷺ «أَمْسِكْ بَعْضَ مَالِكَ فَهُوَ خَيْرٌ لَكَ»