When Allah accepted the repentance of Sayyiduna Ka'b bin Malik (may Allah be pleased with him) for staying behind from the Messenger of Allah (peace and blessings be upon him), he said: "O Messenger of Allah! Part of my repentance is that I give all my wealth in charity in the way of Allah and His Messenger." The Messenger of Allah (peace and blessings be upon him) said to him: "Keep some of your wealth with you; that is better for you."
Hadith Referenceالمعجم الكبير للطبراني / باب الكاف / 16150