Abū al-Qāsim Muḥammad ibn ʿAbd Allāh ibn ʿAbd al-Muṭṭalib ibn Hāshim (
Born in about 570 CE in the Arabian city of Mecca, he was orphaned at an early age and brought up under the care of his uncle Abu Talib. He later worked mostly as a merchant, as well as a shepherd, and was first married by age 25. Being in the habit of periodically retreating to a cave in the surrounding mountains for several nights of seclusion and prayer, he later reported that it was there, at age 40, that he received his first revelation from God. Three years after this event Muhammad started preaching these revelations publicly, proclaiming that "God is One", that complete "surrender" to Him (lit. islām) is the only way (dīn) acceptable to God, and that he himself was a prophet and messenger of God, in the same vein as other Islamic prophets.
Muhammad gained few followers early on, and was met with hostility from some Meccan tribes; he and his followers were treated harshly. To escape persecution, Muhammad sent some of his followers to Abyssinia before he and his followers in Mecca migrated to Medina (then known as Yathrib) in the year 622. This event, the Hijra, marks the beginning of the Islamic calendar, which is also known as the Hijri Calendar. In Medina, Muhammad united the tribes under the Constitution of Medina. After eight years of fighting with the Meccan tribes, his followers, who by then had grown to 10,000, took control of Mecca in the largely peaceful Conquest of Mecca. He destroyed the pagan idols in the city and then sent his followers out to destroy all of the remaining pagan temples in Eastern Arabia.