When physicians decided that the Imam Ali (peace be upon him) would not survive the strike of Ibn Muljim, the Imam (peace be upon him) started to say his last wills to his sons.
Bedridden, Imam Ali (peace be upon him) said to Imam al-Hassan and Imam al-Hussayn (peace be upon both of them),
I advise you both to fear Allah and that you should not hanker after the pleasures of this world even though it may run after you. Do not be sorry for anything of this world that you have been denied. Speak the truth and act in expectation for reward. Be an enemy of the oppressor and helper of the oppressed.
I advise you both and all my children and members of my family and everyone whom my writing reaches to fear Allah, to keep your affairs in order, and to maintain good relations among yourselves, for I have heard your grandfather the Holy Prophet (Allah’s prayers be upon him and upon his holy Household) saying, ‘Improvement of mutual differences is better than general prayers and fasting.’
Fear Allah and keep Allah in view in the matter of orphans. So, do not allow them to starve, and they should not be ruined in your presence.
Fear Allah and keep Allah in view in the matter of your neighbors, because they were the subject of the Prophet’s advice. He went on advising in their favor until we thought that he would allow them a share in inheritance.
Fear Allah and keep Allah in view in the matter of the Quran. No one should excel you in acting upon it.
Fear Allah and keep Allah in view in the matter of prayer, because it is the pillar of your religion.
Fear Allah and keep Allah in view in the matter of your Lord’s House. Do not forsake it so long as you live, because if it is abandoned you will not be spared.
Fear Allah and keep Allah in view in the matter of jihad with the help of your property, lives, and tongues in the way of Allah.
You should keep to a respect for kinship and spending for others. Avoid turning away from one another and severing mutual relations. Do not give up bidding for good and forbidding from evil lest the mischievous gain positions over you, and then if you will pray, the prayers will not be granted.
O sons of Abd Al-Muttalib, certainly I do not wish to see you plunging harshly into the blood of Muslims shouting that the Leader of the Believers has been killed. Beware! Do not kill on account of me except my killer.
Wait until I die by his (i.e. Ibn Muljim) existing stroke. Then, strike him one stroke for his stroke and do not dismember the limbs of the man, for I have heard the Messenger of Allah (Allah’s prayers be upon him and upon his holy Household) saying, ‘Avoid cutting limbs even though it may be a rabid dog.’