In the third phase, the prophet moved to Madinah to enlighten it. On his arrival, Madinah residents became “brothers by Allah favour...”[٦] after being torn by the continuous wars of Aws and Alkhazraj (the two main tribes there). Moreover, Allah rescued them by his elected prophet after being “on the brink of a fire pit”[٧]. In this way, the prophet began constituting that community to be by Allah’s blessing “the best nation that ever emerged for humanity”[٨].
Actually, it was not easy for Quraish to be defeated severely so, they sought revenge and told Abutaleb that Mohammed, his nephew, had cursed and defamed their idols. That is to say, Quraish complained to Abutaleb that the prophet had ruined their reputation here and there. Consequently, Muslims preserved their lives and religion by traveling out of Mecca. Meanwhile, Quraish was not able to do any thing at all even when they encountered Ali bin Abitaleb while he was young. so, Ali also got out to Madinah.
Being raged to war against the prophet and his companions, Quraish caught the opportunity when Muslims attempted to attack Quraish merchant caravan led by Abusufian. In the second year of migration, Quraish gathered an immense army to fight the prophet as the first battle between Muslims and Quraish (Allah had made you victorious at Bader while you were weak so, fear Allah that you may be grateful).[٩] Then, Auhud battle took place in the second year of migration before the occurrence of Alkhandaq in the fifth year. These battles are examples of various major and minor confrontations that happened in such years. However, Muslims won all the conflicts and owed their success to Allah as he reminded them (Allah had made you victorious in many occasions)[١٠]. Imams referred to the number of such occasions as exceeding eighty ones including Khaibar Battle against Jews that ended by their evacuation form Medinah as a result of Jewish frequent betrayals and conspiracies. Further instances are fighting Thaqif Tribe and its allies in the day of Hunain. Muslims were triumphant until the prophet ruled Mecca smoothly without blood-shedding.
The above mentioned summary is worthy of detailed revisiting in order to be able to perceive how the prophet was able to manage over eighty different battles throughout only ten years. Approximately, it was the average of eight battles every single year and one battle in each month and a half. Moreover, he was responsible for the mosque as well as religious and virtual guidance for the whole community including Imam Ali and other disciples. Also, it was on his shoulder to take care of his nine wives. It was really a miracle to be able to accomplish all such duties accurately in a few years.
After ten years of migration, Allah had perfected Islam through his prophet and completed his blessing upon the creatures by ordering the nation to follow Quran and the holy progeny to avoid deviation from the straight path. In this way, it was narrated that the prophet told people about the head of the progeny Imam Ali in many incidents, including the event of Ghadeer, in order to assert the position of Imam Ali as the leader of Muslims after the prophet.