It was narrated that Abu Hurairah (RA) said:
“A man said: ‘O Messenger of Allah (peace be upon him), which kind of charity is best? He said: ‘Giving charity when you are in good health, and feeling stingy, hoping for a long life and fearing poverty.”‘
(Sunan an-Nasa’i, Book 23, Hadith 2543)