Was it written for Ibn Muljam to kill Imam Ali and Imam Hussain to be killed by the order of Yazid in Karbala since both events were foretold by Prophet Muhammad (s)? Should we believe that a person may die prematurely?
We need first to define the meaning of Premature death. Because no one dies before his time. That does not mean that every death is Natural. Those who are killed have died in their own time of death. Those who died as victims of a crime of killing, died in their own time of death. We differ with some Non-Muslims who claim that there is a Premature death which means as they claim, that a person who is killed has died before his time of death. They Think that the age which is for certain age group is the maturity for death. Anyone dies before that maturity age as they claim has died Prematurely. This is their own opinion which does not come along with what we read in Quran and Authentic Hadeeths. “Wa Ma Kana Le Nafsin An Tamouta Ella Bi ‘ithnillah Kitaaban Mo’ajjala” ( 3:145)– No one dies but only by permission of Allah, according to written time”
The way of dying can be Natural, and can be a Crime, and can be any other way. Time is written by Allah on everyone from us. Prophet Yahya (AS) was killed by a tyrant of His time instigated by a bad woman from Bani Israeel. Allah knew that such crime will happen, but the knowledge of Allah about a Crime which is to take place does not mean that Allah has permitted the killing. Allah (SWT) informed the Prophet Muhammad (peace be upon him and His Holy Progeny) that His grandson Hussain will be killed in Karbala. Also informed him that Ameerul Mo'mineen Ali (A.S.) will be killed by Ibne Muljim in Kufa. That does not mean that Allah has permitted the Crime at all.
Wassalam.