Sahih al-Bukhari, Book 55, Hadith 20 (Bukhari 2645)

Narrated Ka`b bin Malik:

I said, "O Allah's Messenger (ﷺ)! For the acceptance of my repentance I wish to give all my property in charity for Allah's sake through His Apostle ." He said, "It is better for you to keep some of the property for yourself." I said, "Then I will keep my share in Khaibar."