Sunan an-Nasa'i #3823
The Book of Oaths and Vows 35:63
'Abdullah bin Ka'b bin Malik narrated from his father, that he said to the Messenger of Allah -when his repentance was accepted:
"O Messenger of Allah! I want to give all my wealth in charity for Allah and His Messenger." The Messenger of Allah said to him: "Keep some of your wealth for yourself; that is better for you."