I said, "Messenger of Allah, Allah saved me only through truthfulness, and part of my repentance is that I divest myself of my wealth as charity to Allah and His Messenger."He said, "Keep some of your wealth for yourself, that is better for you."I said, "Then I will keep my share that is at Khaybar."
أخبرنا محمد بن معدان بن عيسى قال حدثنا الحسن بن أعين قال حدثنا معقل عن الزهري قال أخبرني عبد الرحمن بن عبد الله بن كعب عن عمه عبيد الله بن كعب قال سمعت
قلت يا رسول الله إن الله عز وجل إنما نجاني بالصدق وإن من توبتي أن أنخلع من مالي صدقة إلى الله وإلى رسوله فقال أمسك عليك بعض مالك فهو خير لك قلت فإني أمسك سهمي الذي بخيبر
Muslim reported it in the Book of Repentance, Chapter on the Hadith of the Repentance of Kaab bin Malik and His Two Companions, no. 55/2769, from the hadith of Hasan bin Ayan, with its last portion, and it is in Kubra, no. 4767.