they were cousin of each other.
Imam Ali Bin Abi Talib burried the prophet, just a note, Imam Ali(a.s) is not a Sahabi of the Prophet but he is the same as the prophet "Nafsu Rasoolilah"
The prophet mohhamad had two postions: 1.prophency 2.iman He was messenger of allah and a person who leaded his society Some messengers were only the prophet and were not iman and some had two position like abraham (punh ).in every time there is only one imam who shoulb be obeyed and by presence of prophet mohammad ,Ali son of abutalab (punh) have should obeyed him . an after the death of prophet the successor of the prophet I mean, imam ali was the iman of that time.
Imam ALI ibn abi talib a.s
Imam Hasan S.A. and Imam Hussain S.A. from Fatima S.A. daughter of prophet.
He was the husband of the prophet Mohammad's daughter-Fatemah
Among the people called Abu Muhammad is al-Hasan ibn `Ali ibn Abi Talib. He was a grandson of Prophet Muhammad and is considered the second imam by Shia Muslims.
They recall the martyrdom ofThe beloved grandson of the Islam prophet Mohammad(May peace and blessings of Allah be upon him), The son of Ameer al mu'minin Imam Ali ibn Abu Talib, brother of Imam Hasan ibn Ali, and the leader of the youth of paradise Imam Hussein's (R.A) and his companion's martyrdom.
Mohammad Hussan Imam has written: 'Mouta Imam Mohammad'
Abu Talib was the uncle of Prophet Mohammad (peace be upon him and his family) and Father of Imam Ali (peace be upon him and his family) aka Ali Ibn Abu Talib meaning Ali son of Abu Talib. He was a full brother of Prophet Mohammad's father and protected Prophet Mohammad from his early childhood from the clan of Quraish and other enemies till the day he died. He was also a leader and head of the clan of Banu Hashim. He was also the father of Imam Ali who is the successor of Prophet Mohammad. Abu Talib means Father of Talib. His real name was Imran and was known as Abu Talib because he had a son name Talib.
hazrat Ali S.A (cousin of prophet) and Fatima Zahra S.A. (daughter of prophet)
Answer I ( Shia version)he was grandson of prophet and son of daughter of prophet and Imam Ali (sa) and brother of Imam Hussain (sa)Answer II ( Sunny Version )Hazrat Hasan (ra ) was Grandson of Prophet Muhammad saw . He was selected caliph after death of his father Hazrat Ali (ra ) . He left khilaphat in favour of Hazrat Amir Muawia (ra) .h
Imam Ali's Sword The Zulfiqar was given to him during the battle of Uhud when his sword broke while defending the prophet after the others fled and hid in the mountains when the quraysh attacked from behind because the people did not listen to the prophet's command and decended from the mountain to collect the remains. When Imam Ali's sword broke the Propher SAW said ask The One who you are fighting for, surrounded by enemies defending the Prophet SAW, Imam Ali A.S cried out to Allah SWT and Gibraeel decended to earth with Al Zulfiqar the Sword. The sword then went on within the family of Aaimma e masoomeen and is now with the 12th Decendant the 12 Imam the Imam of our time Imam e Zamana - Imam Mehdi A.S. The Zulfiqar e Haidery (the sword) will be one of the signs to recognize Imam Mehdi A.S