At Fustat, the Kharijite assassin Amr b Bakr went to the main mosque on the appointed day to assassinate 'Amr b Al" A'as. 'Amr b Al-A'as was a child of fortune, and during his life luck favored him miraculously at critical moments. That day because of his illness due to colic pain, he did not attend the Fajr prayers in the mosque. Instead the prayers were led by his deputy Kharja b Hudhafa. The assassin had not seen 'Amr previously, and he took Kharja to be 'Amr. Dashing on Kharja, the assassin slew him with the stroke of the poisoned sword. Amr was caught red handed, and produced before 'Amr. 'Amr asked the assassin about his motive for killing Kharja. Amr said that he had really intended to kill him ('Amr), and Kharja had been killed because he took him for 'Amr. Under the orders of 'Amr, the Kharijite assassin was tortured and put to death. The Kharijite plot of murdering 'Amr b Al-A'as thus came to naught.
"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