To forestall any invasion of Arabia by the Byzantines, the Holy Prophet decided to undertake an expedition to Tabuk on the borders of Syria. The hot season had set in, and the season was unfavorable to the undertaking of any expedition. It was the harvesting season, and the people were generally loath to leave their homes and go to the war. In spite of these difficulties the Holy Prophet was able to raise an army of thirty thousand men. To finance the expedition, the Holy Prophet invited voluntary contributions, and the Companions subscribed liberally to the cost of the war.
"When a person dies, his works end, except for three: ongoing charity, knowledge that is benefited from, and a righteous child who prays for him."
Prophet Mohammed (PBUH)
"The best of what a man leaves behind are three: a righteous child who supplicates for him, ongoing charity the reward of which reaches him, and knowledge that is acted upon after him."
Sunan Ibn Mājah
"Every day two angels come down from Heaven and one of them says, 'O Allah! Compensate every person who spends in Your Cause,' and the other (angel) says, 'O Allah! Destroy every miser.'"
Sahih Bukhari