Abdullah bin Kaab bin Malik reported,

He said to the Messenger of Allah ﷺ when his repentance was accepted, "Messenger of Allah, I will divest myself of my wealth as charity to Allah and His Messenger."The Messenger of Allah ﷺ said to him, "Keep some of your wealth for yourself, that is better for you."Abu Abdul-Rahman said, It seems likely that Zuhri heard this hadith from Abdullah bin Kaab and also from Abdul-Rahman who narrated it from him, within this lengthy hadith concerning the repentance of Kaab.

Nasai 3854

Sahih

حدثنا يونس بن عبد الأعلى قال حدثنا ابن وهب قال أخبرني يونس عن ابن شهاب قال أخبرني

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

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

النسائي 3854صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Nasai Sughra
Book
Oaths and vows
Chapter
If he made a vow then accepted Islam before fulfilling it
Numbering
Darussalam 3854
Nasai 3854