After the battle of Badr in 694 C.E. a dispute arose between the Muslims and the Jews of Banu Qainuqa. All attempts to settle the dispute peacefully failed, and the Muslims were forced to accept the challenge of the Jews. The Banu Qainuqa shut themselves in their strongholds, and the Muslims laid siege to their strongholds. The siege lasted for a fortnight, and then brought to bay, the Jews surrendered. The Muslims wanted to kill the Jews for their treachery, but on the intercession of Abdullah bin Ubayy, the Holy Prophet agreed to spare their lives but exiled them from Madina.
"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