Birth of Ali:
Hadrat Ali was the son of Abu Talib, a prominent Quraish chief and custodian of the Holy Ka'bah. The mother of Hadrat Ali was Fatima. Fatima was a cousin of Abu Talib. Thus, both the father and mother of Hadrat Ali were Hashimites, and that was a great honour. Hadrat Ali was born in unusual circumstances. On the 13th day of the holy month of Rajab, Fatima, the mother of Hadrat Ali, visited the Ka'bah to perform the pilgrimage. During the course of the pilgrimage and while circumambulating the Ka'bah, Fatima felt the pangs of childbirth. She retired to a secluded place in the precincts of the holy Ka'bah, and there Hadrat Ali was born. Hadrat Ali has thus had the unique honour to be born in the House of God. When both mother and the child returned home, the holy Prophet, and Hadrat Khadijah came to see her newborn child. Since his birth, he had not opened his eyes, and that worried both Fatima and Abu Talib. However, when the holy Prophet took the child in his lap, then he opened his eyes. So the first person that Hadrat Ali saw after his birth was the holy Prophet. When the holy Prophet was asked whether he approved of the child being named either Asad or Zaid, he said that since the child was born in the House of God, he should be named Ali (the word Ali being a derivative of Allah). Hadrat Ali had thus had the distinction of being named after Allah. No one before him had ever been so named. Furthermore, the name acquired more sanctity because it was suggested by the holy Prophet.
The life of Hadrat Ali can be divided into three distinct periods. The first period comprises the first 32 years of his life and extends from 600 to 632 CE. I call this period the period of the education and action. It was during this period that he received his education under the loving care of the holy Prophet; imbibed with values of Islam; and acquired all the attributes that contribute to greatness When Ali was five or six years old, a famine occurred in and around Mecca, affecting the economic conditions of Ali's father, who had a large family to support. Muhammad took Ali into his home to raise him. When Muhammad reported that he had received a divine revelation, Ali, then only about ten years old, believed him and professed to Islam. A whole group of companions said that he was amongs the first ones to accept islam. During the persecution of Muslims and boycott of the Banu Hashim in Mecca, Ali stood firmly in support of Muhammad In 622, the year of Muhammad's migration to Yathrib (now Medina), Ali risked his life by sleeping in Muhammad's bed to impersonate him and thwart an assassination plot so that Muhammad could escape in safety. This night is called Laylat al-Mabit. According to some hadith, a verse was revealed about Ali concerning his sacrifice on the night of Hijra which says, "And among men is he who sells his nafs (self) in exchange for the pleasure of Allah
Ali was 22 or 23 years old when he migrated to Medina. When Muhammad was creating bonds of brotherhood among his companions (sahaba) he selected Ali as his brother. For the ten years that Muhammad led the community in Medina, Ali was extremely active in his service as his secretary and deputy, serving in his armies, the bearer of his banner in every battle, leading parties of warriors on raids, and carrying messages and orders.  As one of Muhammad's lieutenants, and later his son-in-law, Ali was a person of authority and standing in the Muslim community.
In 623, Muhammad told Ali that God ordered him to give his daughter Fatimah Zahra to Ali in marriage.
Imam Ali ibn Abi Taleb (pbuh) found his wife in tears, he then sought the cause of it, Fatimah Zahra (pbuh) responded, "I thought of my state in the end of this life and in purgatory, since the transition from my father Prophet Muhammad's (pbuh) to my own house reminded me of my transition to the grave. By the grace of...