Hazrat Imam Mahdi (as) bears the special characteristics and more from the previous prophets. He is the embodiment of their virtues and qualities. He carries their signs and is the inheritor of all that they stood for and what was revealed upon them. The following article mentions the similarity between Hazrat Habeel (as) and Imam Mahdi (as).
Betrayal by close relative
His nearest and closest kin killed Habeel – that is his brother – the Almighty Allah says in His great book: “And relate to them the story of the two sons of Adam with truth when they both offered an offering, but it was accepted from one of them and was not accepted from the other. He said: I will most certainly slay you. (The other) said: Allah only accepts from those who guard (against evil).” (Surah Maedah verse 27)
In the same way the closest relative of Imam Qaem (as) tried to eliminate him , and that was his paternal uncle, Jafar Kazzab (the liar).
Regarding this matter, Imam Zainul Abideen (as) said, “As if I can see that Jafar Kazzab, helping the tyrant of the time in searching for the Wali of Allah. He will try to spy on him and not knowing about the birth of Imam Qaem, he will become the executor of his father’s estate and will desire that were he to gain upper hand on the Qaem he will eliminate him, and will be greedy for his inheritance, till he will usurp it wrongfully.” (Kamaluddin volume 1, page 320)
(The above article was taken and adapted from the book Mikyalul Makarim Fee Fawaedid Dua Lil Qaem)