Voluntary charity is recommended at all times, especially when needed, and we have been encouraged to give charity in the book of Allah and the traditions of His Messenger ﷺ. For example:

- Allah’s statement: “Who is he that will lend to Allah a goodly loan so that He may multiply it to him many times?” (al- Baqarah: 245)
- On the authority of Abu Hurairah (may Allah be pleased with him) who said: The Messenger of Allah ﷺ said: “Whoever spends in charity the equivalent of a date from pure earnings- and Allah accepts only that which is pure- Allah will accept it with his right hand and nurture it for its owner as any of you nurtures his foal –and a foal is the offspring of a horse – until it becomes like a mountain.” [ Agreed Upon]
- The Prophet ﷺ counted the person who gives alms in secret to be among the seven that Allah will cover with His shade on the day when there will be no shade except His shade: “...and a man that gives alms and makes this secret to the extent that his left hand knows not what his right has spent.”
- On the authority of Ka’b ibn ‘Ujrah (may Allah be pleased with him), the Prophet ﷺ said: “...and alms extinguishes bad deeds just as water extinguishes fire.” [ Source: At-Tirmidhi]
source: https://www.al-feqh.com/en/voluntary-charity-alms