From Sahih Bukhari (Hadith 2757):
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
Reference: Bukhari 2757