There Muhammad told Ali that he had been ordered by God to give his daughter, Fatimah, to Ali in marriage.[8] For the ten years that Muhammad led the community in Medina, Ali was extremely active in his service, leading parties of warriors on raids, and carrying messages and orders. With the exception of the Battle of Tabouk, Ali took part in all the battles fought for Islam during this time.