(16) باب إِذَا تَصَدَّقَ أَوْ أَوْقَفَ بَعْضَ مَالِهِ أَوْ بَعْضَ رَقِيقِهِ أَوْ دَوَابِّهِ، فَهُوَ جَائِزٌ
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: Sahih al-Bukhari 2757
In-book reference: Book 55, Hadith 20
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 4, Book 51, Hadith 20