Sahih al-Bukhari Book 78, Hadith 38
Allah's Messenger (ﷺ) said, "The one who looks after and works for a widow and for a poor person is like a
warrior fighting for Allah's Cause." (The narrator Al-Qa'nabi is not sure whether he also said "Like the
one who prays all the night without slackness and fasts continuously and never breaks his fast.")
The Prophet (ﷺ) said "The one who looks after and works for a widow and for a poor person, is like a warrior fighting for Allah's Cause or like a person who fasts during the day and prays all the night." Narrated Abu Huraira that the Prophet (ﷺ) said as above.
We came to the Prophet (ﷺ) and we were (a few) young men of approximately equal age and stayed with him for twenty nights. Then he thought that we were anxious for our families, and he asked us whom we had left behind to look after our families, and we told him. He was kindhearted and merciful, so he said, "Return to your families and teach them (religious knowledge) and order them (to do good deeds) and offer your prayers in the way you saw me offering my prayers, and when the stated time for the prayer becomes due, then one of you should pronounce its call (i.e. the Adhan), and the eldest of you should lead you in prayer.